Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1171061

    simon q
    Participant

    Hello

    So I’ve been having some troubles getting PHP 7.0 working on my X-Theme install with CornerStone installed specifically on SiteGround hosting servers.

    We’ve pin pointed the problems to a combination of CornerStone + PHP 7.0 + SiteGround.

    If we take away any of these three factors (say disable cornerstone, or change php back to 5.6 or as we have migrated the site to another server which is working fine with php 7.0 + cornerstone) then everything is fine.

    I’m hoping that since SiteGround is such a common WordPress hosting company you may have come across something like this before, although I don’t see anything searching the forum.

    I have been in touch with SiteGround support and I’ll paste their reply in the next message

    #1171062

    simon q
    Participant

    The issue appears to be a compatibility one between the cornerstore plugin and the current php7 version which we are running. In order to “work-around” the issue, I did the following:

    1 – I set php70 for your site’s front-end. (all your clients and front-end operations will be via php7.0)
    2 – I set php56 for the wp-admin folder. This means that the site’s backend will function with php5.6 in order to be compatible with the plugin and not cause any further issues with it.

    If you still want to use php7 for the backend as well, I would recommend that you contact the plugin developer so that he may trouble-shoot what is the exact issue with the plugin and php version which is running on the server. If we can be of any assistance in that regard, please let us know and we will gladly assist you in any way we can.

    Best Regards,

    #1172459

    Rad
    Moderator

    Hi Simon,

    Thanks for sharing, we’ll definitely check that.

    Thanks!

    #1172563

    simon q
    Participant

    Cool, will you let me know when you do and when you are likely to do so?

    Reason being is I really want the site running on PHP 7.0 as its’ faster and everything else is working fine on PHP 7.0. The only thing that is stopping us from switching to 7.0 is Cornerstone.

    So we either wait for you guys to check it out and hopefully find the problem and fix it or tell us where to fix it, or we must move to another hosting company, which we don’t want to do as it will be more expensive and cost us time to do so.

    I’ll wait for your response because the outcome depends on our future actions.

    #1172694

    Darshana
    Moderator

    Hi there,

    Can you please contact your hosting provider and get the error details of the issues on their error logs? So that we can submit it to our developers.

    Thanks!

    #1174849

    simon q
    Participant

    Hi there

    Here is the error log. Please submit it to your developers and get back to me soon. If we can get this error resolved it’s going to save me a lot of time and money so I’m going to appreciate it a huge amount.

    Fatal error: Uncaught Error: Class '‘ not found in /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/classes/controls/class-control-group.php:26 Stack trace: #0 /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/classes/elements/class-element-wrapper.php(219): Cornerstone_Control_Group::factory(Array, Array, Array) #1 /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/classes/elements/class-element-wrapper.php(280): Cornerstone_Element_Wrapper->controls() #2 /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/classes/elements/class-element-wrapper.php(255): Cornerstone_Element_Wrapper->get_applied_defaults() #3 /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/classes/elements/class-element-orchestrator.php(280): Cornerstone_Element_Wrapper->model_data() #4 /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/utilit in /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/classes/controls/class-control-group.php on line 26`

    #1174854

    simon q
    Participant

    again without the code tags because it seems like they messed it up a little bit…

    Fatal error: Uncaught Error: Class ‘`’ not found in /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/classes/controls/class-control-group.php:26 Stack trace: #0 /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/classes/elements/class-element-wrapper.php(219): Cornerstone_Control_Group::factory(Array, Array, Array) #1 /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/classes/elements/class-element-wrapper.php(280): Cornerstone_Element_Wrapper->controls() #2 /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/classes/elements/class-element-wrapper.php(255): Cornerstone_Element_Wrapper->get_applied_defaults() #3 /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/classes/elements/class-element-orchestrator.php(280): Cornerstone_Element_Wrapper->model_data() #4 /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/utilit in /home/quinnfiv/public_html/pronunciation.club/wp-content/plugins/cornerstone/includes/classes/controls/class-control-group.php on line 26

    #1175522

    Rad
    Moderator

    Hi there,

    Other plugins and libraries are having issues on PHP 7.0 too and not just the cornerstone. It’s related to Class declaration and driver.

    Example, in cornerstone, this is the affected line

    $control = Cornerstone_Control::factory( $name, $config );

    We’ll continue checking, for the meantime, please downgrade your PHP to 5.6

    Thanks!

    #1180401

    simon q
    Participant

    Hello

    Did you get any feedback about this issue with Cornerstone and PHP 7.0?

    Thanks

    #1180709

    Rad
    Moderator

    Hi there,

    None yet, but I conducted some personal test and it seems random. It works on some of my installation, and few didn’t. Maybe I’m not yet fully familiar with the features or changes added to 7.0. Though, I can confirm that it only happens on PHP 7.0

    I’ll continue checking while waiting for developer inputs.

    Thanks!

    #1180867

    simon q
    Participant

    Hi Rad

    Well that’s actually fantastic news for me. I have discovered a bug and you are able to replicate it in some way. This means we definitely found something wrong, so there is hope that your development team can get to the bottom of it.

    I know there’s definitely something wrong but there is a variable that is outside of X-Theme / Cornerstone that may have something to do with PHP 7.0 because, like I said earlier, the problem happens on one server but on another server it does not happen.

    I shall continue to wait for you while you are waiting for developer inputs 🙂

    Thanks!

    Simon

    #1180876

    Rad
    Moderator

    Thanks for sharing Simon. Yes, we’ll continue checking too.

    #1280729

    Ben Horle
    Participant

    Any news on php7 compatibility ?

    #1281014

    Rad
    Moderator

    Hi there,

    There is no news yet and I can’t verify on where or on what part of development our developers currently on. But in terms of compatibility, it may take a while. For the meantime, please downgrade it to 5.6.

    Thanks for understanding.

    #1281373

    Ben Horle
    Participant

    But cornerstone is flying now, it is responsive even with caching still on and it doesn’t hang while saving anymore!

    The website on a whole is super fast now, do I really need to downgrade to php5.6?