Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Fatal Error…
New Landing › How can we help? › Atelier › Fatal Error…
- This topic has 18 replies, 5 voices, and was last updated 8 years by Rui Guerreiro – SUPPORT.
-
Posted in: Atelier
-
April 4, 2016 at 2:00 pm #259532
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? 🙂
April 4, 2016 at 3:52 pm #259560Hi,
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
MohammadApril 5, 2016 at 6:28 am #259625Unfortunately 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
April 5, 2016 at 8:58 am #259638Hi,
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 ); }
April 16, 2016 at 3:39 pm #261928This 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.April 16, 2016 at 8:14 pm #261954Hi 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
April 17, 2016 at 6:58 pm #262001Ok 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
April 18, 2016 at 7:26 pm #262316Hi,
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.
April 18, 2016 at 11:00 pm #262373Updated, 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…
April 18, 2016 at 11:10 pm #262375Damn the update messed up the entire site… 🙁
April 19, 2016 at 1:01 am #262383Hi there,
You are using an outdated version of the theme – please update to v1.9.81
– Ed
April 19, 2016 at 12:00 pm #262505Ah, 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.April 20, 2016 at 9:12 am #262667No info, need to get this resolved asap…
April 21, 2016 at 8:04 am #262885Hello, could you guys please look into this. I can´t launch my site due to this problem…
BR / David
April 22, 2016 at 8:04 am #263146Would it perhaps be possible to “turn off” swift framework for this specific page?
-
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.