Archived topic
Fatal error on iPhone safari!
7 replies · Started by Fernando Arizpe on July 19, 2015
Hi, i have this site villadeaguayo.org and i get a fatal error when trying to open with iPhone safari, if i do it in a computer it worka fine.
Dont know how to fix this..
"Fatal error: Call to undefined function generate_main_class() in /home/telema5/public_html/villadeaguayo.org/wp-content/plugins/gp-premium/addons/generate-sections/inc/templates/generate-sections-page-template.php on line 18 "....
If it can't find that function, it means GeneratePress isn't the active theme.
generate_main_class() is a GeneratePress function, so as long as GP is activated, that error won't show up.
The theme is active!, the thing is, it was working fine, until i add sections to de Home page, now it works when i browse from a computer, but not when i browse from my iphone (it works on android). so i dont know what is going on!...
please help me!..
PD: it is the only theme i have installed in wordpress.
Can you link me to the site?
Have you made any changes to the theme's code?
yes!, the site is
villadeaguayo.org
i didnt make any changes to the theme code,
hope you can help me.
Ah - nice catch. You're using Jetpack's mobile site feature, which isn't compatible with Sections.
I'll go ahead and make sure there's no errors in the next version.
Are you meaning to use the mobile site feature offered by the Jetpack plugin? GP is mobile responsive without any other plugins :)
Oh. ok,, well i only like jetpacks because is integration with facebook posts,
so do you think if i disable Jetcpack it will work??
or do i have just to disable responsive feature?
did you see that it only fails with iOS??
You can keep Jetpack on, you just need to deactivate the mobile site module. Go to "Jetpack > Settings" and you should see the "Mobile Theme" module which you can deactivate.
