New Landing How can we help? Atelier Fatal Error…

Viewing 15 posts - 1 through 15 (of 19 total)
  • Posted in: Atelier
  • #259532
    david.joh
    Member
    Post count: 64

    I´m using Apppresser together with Atelier, however when i use the apptheme and try visiting one of my pages with a camera function I get this fatal error message:

    Fatal error: Call to undefined function sf_get_post_meta() in /home/kondomap/public_html/wp-content/plugins/swift-framework/includes/shortcodes/sf-shortcodes.php on line 1658

    Contacted the apppresser support and got this response:

    The error that you are getting does seems to be relating to code generated from your web theme.

    What is likely happening is that you have a shortcode/plugin on your page/site which is attempting to communicate with your web theme, but when you are logged in an using the AppTheme, the shortcode/plugin cannot see the web theme and ultimately throws the error message.

    What I would suggest is to chat with the Swift Framework guys to see what the error relates to and if the code can be moved over to our theme somehow.

    So how do I best solve this problem? 🙂

    #259560
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please go to Admin -> Plugins -> Swift Framework plugin – delete it with all files/directory. Now install it again because some files missing. Hope it should help to you.
    Thanks
    Mohammad

    #259625
    david.joh
    Member
    Post count: 64

    Unfortunately it did not work, got same error but on a different line (1770)

    Fatal error: Call to undefined function sf_get_post_meta() in /home/kondomap/public_html/wp-content/plugins/swift-framework/includes/shortcodes/sf-shortcodes.php on line 1658

    #259638
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You can use this function code with Apppress. Ask Apppress support to put this code.

    function sf_get_post_meta( $id, $key = "", $single = false ) {
    
    	        $GLOBALS['sf_post_meta'] = isset( $GLOBALS['sf_post_meta'] ) ? $GLOBALS['sf_post_meta'] : array();
    	        if ( ! isset( $id ) ) {
    	            return;
    	        }
    	        if ( ! is_array( $id ) ) {
    	            if ( ! isset( $GLOBALS['sf_post_meta'][ $id ] ) ) {
    	                //$GLOBALS['sf_post_meta'][ $id ] = array();
    	                $GLOBALS['sf_post_meta'][ $id ] = get_post_meta( $id );
    	            }
    	            if ( ! empty( $key ) && isset( $GLOBALS['sf_post_meta'][ $id ][ $key ] ) && ! empty( $GLOBALS['sf_post_meta'][ $id ][ $key ] ) ) {
    	                if ( $single ) {
    	                    return maybe_unserialize( $GLOBALS['sf_post_meta'][ $id ][ $key ][0] );
    	                } else {
    	                    return array_map( 'maybe_unserialize', $GLOBALS['sf_post_meta'][ $id ][ $key ] );
    	                }
    	            }
    
    	            if ( $single ) {
    	                return '';
    	            } else {
    	                return array();
    	            }
    
    	        }
    
    	        return get_post_meta( $id, $key, $single );
    	    }
    #261928
    david.joh
    Member
    Post count: 64

    This seemed to work fine however I´m receiving the following error on my site (see image below) and it seems that the JS camera-app can´t be loaded properly due to some conflict with the Swift Framework…

    Already talked to the Apppresser support and I got this response:

    “This error seems to be stemming from the Swift Framework and is more than likely causing the rest of the JS not to load. Have a look at repairing this issue and then test the login button that is on the page (there seems to be a link there) or in the slide out menu. The function that you received was really from the builders of the Swift Framework, we just provided you with a way to add it into the child theme. I would show them that you are still receiving an error and ask if there is anything else that can be done.”

    Attachments:
    You must be logged in to view attached files.
    #261954
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    Please can you confirm what page we can see the error, and how to replicate? I’ve had a look and can’t seem to see it?

    – Ed

    #262001
    david.joh
    Member
    Post count: 64

    Ok so you have to log in to the admin panel, then the theme automatically changes to the app-verison.
    The page with the problems are: http://www.kondomappen.se/dela-ett-foto/
    However it seems to be working when you are on the webpage-version, but you can see the error on the page…

    I think that I added the login/pass when I started this thread, not 100% sure though.

    Br / David

    #262316
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Checked this both logged in & out and I do not get any console errors.

    Can you please update the theme to 1.9.81 and also update the Swift Framework plugin? Do so here: http://www.kondomappen.se/wp-admin/update-core.php.

    Thanks.

    #262373
    david.joh
    Member
    Post count: 64

    Updated, still see the same error when I check the page, you need to be logged in.
    http://www.kondomappen.se/dela-ett-foto/

    The theme should change and you should see the apppresser version of the site…

    #262375
    david.joh
    Member
    Post count: 64

    Damn the update messed up the entire site… 🙁

    #262383
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    You are using an outdated version of the theme – please update to v1.9.81

    – Ed

    #262505
    david.joh
    Member
    Post count: 64

    Ah, updated and the site works fine now, however the error on the specific camerapage still remains.

    Attachments:
    You must be logged in to view attached files.
    #262667
    david.joh
    Member
    Post count: 64

    No info, need to get this resolved asap…

    #262885
    david.joh
    Member
    Post count: 64

    Hello, could you guys please look into this. I can´t launch my site due to this problem…

    BR / David

    #263146
    david.joh
    Member
    Post count: 64

    Would it perhaps be possible to “turn off” swift framework for this specific page?

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

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

License required for one of the following items
Login and Registration Log in · Register