New Landing How can we help? Cardinal Urgent – Fatal error: Call to undefined function sf_list_galleries()

Viewing 15 posts - 1 through 15 (of 20 total)
  • Posted in: Cardinal
  • #179512
    nikosk
    Member
    Post count: 65

    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

    Urgent! Site broken after trying to reinstall theme

    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.

    #179526
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I see that some files are missed to upload. I would suggest to upload all theme files through FTP software.
    Thanks
    Mohammad

    #179533
    nikosk
    Member
    Post count: 65

    You 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.

    #179542
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me wordpress admin login detail, FTP login detail to inspect and resolve the issue.
    Thanks
    Mohammad

    #179566
    nikosk
    Member
    Post count: 65
    This reply has been marked as private.
    #179604
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am not getting any fatal error as you explained. Are you using latest version of theme at http://theman.kakiasoptics.gr/?

    Thanks
    Mohammad

    #179625
    nikosk
    Member
    Post count: 65

    Try 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.

    #179637
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Your mean that i need to decativate cardinal theme and activate another theme to get the fatal error? Am i right?
    Thanks
    Mohammad

    #179648
    nikosk
    Member
    Post count: 65

    Yes 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.

    #179652
    nikosk
    Member
    Post count: 65

    Preview will not make the installation unrecoverable though

    #179704
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    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

    #179729
    nikosk
    Member
    Post count: 65

    Unfortunately 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

    Multiple Themes

    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.

    #179730
    nikosk
    Member
    Post count: 65

    Now 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.

    #179732
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Yes, 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

    #179760
    nikosk
    Member
    Post count: 65

    Hello,

    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

Viewing 15 posts - 1 through 15 (of 20 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register