Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #684722

    maxxabillion
    Participant

    I’m running WP Touch plugin and after the new theme update its causing a fatal error. The error is as follows

    Fatal error. Call to undefined function x_get_stack() in /www/wp-content/plugins/cornerstone/includes/integrations/x-theme.php on line 207

    Please help

    #684736

    maxxabillion
    Participant

    My website is http://www.asatera.com if you visit it on a mobile device, you will see the error.

    #684988

    Alexander
    Keymaster

    Hey there,

    Thanks for bringing this to our attention. We’ll look into resolving this with a new update soon.

    #702825

    vicu v
    Participant

    Same problem here, cornerstone 1.0.11 and wptouch pro 4.0.12

    stderr: PHP Fatal error: Call to undefined function x_get_stack() in /var/www/vhosts/fratelliabagnale.it/httpdocs/wp-content/plugins/cornerstone/includes/integrations/x-theme.php on line 207

    i have disabled all the plugins in wptouch pro settings, without success

    #702921

    Alexander
    Keymaster

    Hi there,

    Sorry to hear you’re having issues with this. Try adding this code to functions.php of a child theme:

    function cornerstone_wptouch_compat($atts) {
      remove_all_filters('cornerstone_generator_map');
      return $atts;
    }
    add_filter('cornerstone_generator_map','cornerstone_wptouch_compat', -9999);
    #705817

    vicu v
    Participant

    Solved by adding your code, thanks!!!!

    #705848

    Christopher
    Moderator

    You’re welcome.

    #710905

    Vink
    Participant

    Hello,

    I am also having the same problem, but the above code doesn’t fix it.

    I’ve just updated everything, and that didn’t solve it.

    I only see the error on iPhones; on Android phones it works correctly.

    #711167

    Nabeel A
    Moderator

    Hi Jeroen,

    Thanks for writing in! Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #712105

    Vink
    Participant
    This reply has been marked as private.
    #712187

    Rad
    Moderator

    Hi Jeroen,

    It’s probably your iPhone’s browser cache. This kind of error and fix are running within the server (PHP), hence the output generated should be the same for all browsers.

    Please clear your browser cache and test again.

    Thanks.

    #712465

    Vink
    Participant

    Hi,

    We tested it on iPhones that never saw this website before, and the problem still occurred.
    Also after we deleted the history and cookies.

    Or are you seeing the mobile website correctly when on iPhone?

    #712843

    Rad
    Moderator

    Hi there,

    I checked again and it looks like it’s cached on my end. Yes, it’s not working because it’s trying load different theme on mobile. It’s also not working on my androids phone with screen resolution under 767px, but works on android with greater screen (tablet) because WP Touch is not active on them.

    And yes, looks like the issue is with WP Touch plugin. Cornerstone can simply see X theme as the active one, but it serve different theme on mobile. WP Touch should tell which is active theme for mobile instead of just serving it, so the plugins that are not dependent to it will not execute script that are meant for X theme.

    You can also turn off WP Touch target devices at Admin > WP Touch Pro > Appliances.

    You should contact WP Touch author to since we aren’t sure how they implement their feature on top of other theme.

    Thanks!

    #715826

    Vink
    Participant

    Hello,

    I don’t know exactly what I did, because it suddenly didn’t work on my android phone either, but after deleting all wptouch files and installing it again (I tried this more times) it works again, on all mobile devices I tested!

    I also disabled some plugins (including Cornerstone) in WPtouch, so I think that did the most.

    Thank you as always for helping me!

    #716010

    Jade
    Moderator

    Glad to hear you got it sorted out Jeroen. Cheers! 🙂