Digital experiences for all disciplines
New Landing › How can we help? › Cardinal › Urgent – Fatal error: Call to undefined function sf_list_galleries()
New Landing › How can we help? › Cardinal › Urgent – Fatal error: Call to undefined function sf_list_galleries()
- This topic has 19 replies, 3 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Cardinal
-
May 29, 2015 at 10:31 am #179512
This is important!
I did not have this error always. It could be related with a recent update of yours.
Fatal error: Call to undefined function sf_list_galleries() in /public_html/wp-content/plugins/swift-framework/includes/page-builder/shortcodes/gallery.php on line 268
I did as suggested by this post
The fact is that no files are missing.
I get white administrator screen and cannot do anything to change the theme.I also get this error when all plugins are disabled.
May 29, 2015 at 10:51 am #179526Hi,
I see that some files are missed to upload. I would suggest to upload all theme files through FTP software.
Thanks
MohammadMay 29, 2015 at 10:56 am #179533You are giving me copy and paste answers.
I just told you I already replaced the missing files by reuploading the whole cardinal theme.I had read the post from another user before I sent you a support request.
May 29, 2015 at 11:03 am #179542Hi,
Please provide me wordpress admin login detail, FTP login detail to inspect and resolve the issue.
Thanks
MohammadMay 29, 2015 at 11:33 am #179566This reply has been marked as private.May 29, 2015 at 12:31 pm #179604Hi,
I am not getting any fatal error as you explained. Are you using latest version of theme at http://theman.kakiasoptics.gr/?Thanks
MohammadMay 29, 2015 at 12:51 pm #179625Try doing a preview of another theme without enabling it.
The theme section is under the POS. Im saying to help you
because of the language.If you enable another theme you will get white screen with fatal error
and probably an unrecoverable installation.May 29, 2015 at 1:15 pm #179637Hi,
Your mean that i need to decativate cardinal theme and activate another theme to get the fatal error? Am i right?
Thanks
MohammadMay 29, 2015 at 1:30 pm #179648Yes this is correct. If you do that you will get admin white screen and probably unrecoverable wordpress installation.
You will get the same result just by doing a theme preview.
May 29, 2015 at 1:32 pm #179652Preview will not make the installation unrecoverable though
May 29, 2015 at 2:56 pm #179704Hi,
Thanks for the heads up, we will check this.
In this situation you have to deactivate first the SwiftFramework plugin before changing the theme.-Rui
May 29, 2015 at 3:26 pm #179729Unfortunately the swift framework does not deactivate when I try to.
It gives the message that it has successfully, but it stays on.I can only deactivate it by renaming its directory via ssh.
In conclusion when someone attempts to switch themes I assume the framework should
deactivate as well.I am trying to run the plugin
so I can enable low vision enlarged text as well when needed by the user.
I also get
Fatal error: Call to undefined method WP_Upgrader::construct() in /wp-content/themes/cardinal/includes/class-tgm-plugin-activation.php on line 1859
when I try to install the bundled plugins which could be related. So the bundled plugins cannot be installed now.
May 29, 2015 at 3:31 pm #179730Now that I think of it the framework needs to keep running always if I want to be able to run multiple themes.
Regardless at least the error needs to be fixed so I can switch themes.
May 29, 2015 at 3:40 pm #179732Yes, you are right it needs to be active because if you have some custom post types with a lot of data and desire to Switch themes, this way you won’t lose it all.
Try to add an extra validation, inside the file /wp-content/plugins/swift-framework/includes/page-builder/shortcodes/gallery.php
Find this code
if ( is_admin() ) { $list_galleries = array( "type" => "dropdown", "heading" => __( "Gallery", 'swift-framework-plugin' ), "param_name" => "gallery_id", "value" => sf_list_galleries(), "description" => __( "Choose the gallery which you'd like to display. You can add galleries in the left admin area.", 'swift-framework-plugin' ) ); } else { $list_galleries = array( "type" => "dropdown", "heading" => __( "Gallery", 'swift-framework-plugin' ), "param_name" => "gallery_id", "value" => "", "description" => __( "Choose the gallery which you'd like to display. You can add galleries in the left admin area.", 'swift-framework-plugin' ) ); }
and replace by this one
if (function_exists('sf_list_galleries')) { if ( is_admin() ) { $list_galleries = array( "type" => "dropdown", "heading" => __( "Gallery", 'swift-framework-plugin' ), "param_name" => "gallery_id", "value" => sf_list_galleries(), "description" => __( "Choose the gallery which you'd like to display. You can add galleries in the left admin area.", 'swift-framework-plugin' ) ); } else { $list_galleries = array( "type" => "dropdown", "heading" => __( "Gallery", 'swift-framework-plugin' ), "param_name" => "gallery_id", "value" => "", "description" => __( "Choose the gallery which you'd like to display. You can add galleries in the left admin area.", 'swift-framework-plugin' ) ); } }
-Rui
May 29, 2015 at 4:09 pm #179760Hello,
Much better although it gives the error
Notice: Undefined index: param_name in /wp-content/plugins/swift-framework/includes/page-builder/inc/mapper.php on line 39
Notice: Undefined index: param_name in /wp-content/plugins/swift-framework/includes/page-builder/inc/mapper.php on line 41
when I change the theme
-
Posted in: Cardinal
You must be logged in and have valid license to reply to this topic.