Okay
  Public Ticket #3377058
cannot upgrade php
Closed

Comments

  •  5
    phaakon started the conversation

    Hi
    My webhost (Dreamhost) is requiring upgrading to PHP from 7.4 to 8.1. The automatic upgrade from the host failed. I updated wordpress to 6.2.2 but when I tried to update the PHP I got an email from wordpress that said-

    WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.In this case, WordPress caught an error with one of your plugins, WooCommerce.
    WordPress version 6.2.1
    Active theme: Proton (version 1.4)
    Current plugin: WooCommerce (version 3.4.8)
    PHP version 8.1.17

    I updated all the plugins, and tried again but the site stopped working so I reverted to a backup version.

    Please advise!
    thanks
    Peter

  •  933
    Neuron replied

    Hi,

    Please make sure that you're running the latest version of the Proton theme.

    Proton Theme Version 1.4.8

    You can update the theme directly on your dashboard, via the plugin below: 

    https://envato.com/market-plugin/

    Feel free to ask for anything you need.

    Kind Regards


  •   phaakon replied privately
  •   phaakon replied privately
  •   phaakon replied privately
  •   Neuron replied privately
  •   phaakon replied privately
  •   phaakon replied privately
  •  933
    Neuron replied

    Hi,

    I am very sorry for the late reply, we were not working on the weekend.

    The error you encountered is a PHP E_COMPILE_ERROR, indicating a critical error during the compilation of the code. Specifically, the error message points out a problem with the usage of the ternary operator (? :) in line 644 of the file /home/phtpht/phtpht.com/wp-content/plugins/js-composer/include/classes/editors/class-vc-frontend-editor.php.

    The error message suggests that the usage of the ternary operator is ambiguous due to a lack of parentheses. It recommends using either (a ? b : c) ? d : e or a ? b : (c ? d : e) to clarify the desired order of operations.

    To resolve the issue, you should locate line 644 in the mentioned file and modify the code to include parentheses around the ternary operators according to one of the recommended patterns.

    Here's an example of how the modified code might look using the first recommended pattern:

    // Original code:
    $variable = a ? b : c ? d : e;
    // Modified code with added parentheses:
    $variable = (a ? b : c) ? d : e;
    

    Feel free to ask for anything you need.

    Kind Regards


  •  5
    phaakon replied

    thanks, although this is honestly not particularly helpful. I don't have any idea how to do any of what you mentioned below, so I also do not understand how this could be an issue? How did this error arrive? 
    Also- the site is still not working right- the WP Bakery plug in will not update and its making it so I can't actually update any of my pages- meaning that my site is still not working since none of the images show up.

  •  5
    phaakon replied

    also- wordpress says the issue is with a plug-in, namely WP Bakery- this is also from the wordpress email-

    "WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, WPBakery Page Builder.


    First, visit your website (https://www.phtpht.com/) and check for any visible issues. Next, visit the page where the error was caught (https://www.phtpht.com/wp-admin/admin-ajax.php) and check for any visible issues."

  •  933
    Neuron replied

    Hi,

    I've attached the latest version of the WPBakery Page Builder plugin, please update it.

    https://we.tl/t-SJoPG6qgfF

    Feel free to ask for anything you need.

    Kind Regards


  •  5
    phaakon replied

    hi
    I installed the new version of WP Bakery and got this fatal error message when I tried to activate it.
    Please advise.

    3178504608.png
  •  5
    phaakon replied

    Hi
    can you all address these issues ASAP please? I really need my site to be back working and for the images to return/be able to edit and add new images, to recap:
    -tried to upgrade php- not working with Dreamhost
    -updated Proton and plugins (except could not update WPBakery)- images from portfolio items disappeared and could only access WP editor- not able to add new images to portfolio items.
    -got link to update WPBakery- uploaded that but getting "fatal error" message when i try to activate.
    -still can't edit site, portfolio images are still missing and php cannot be upgraded.
    thanks

  • Liz replied

    Hi Neuron and phaakon. I am having the same problem. We tried to update the WPBakery Plugin code, by turning it into a function, by following the guidance on this post: https://stackoverflow.com/questions/74222200/fatal-error-unparenthesized-a-b-c-d-e-is-not-supported

    Now the error reads: 

    Your PHP code changes were rolled back due to an error on line 215 of file wp-content/themes/proton/vc_templates/proton_portfolio.php. Please fix and try saving again.

    Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in wp-content/themes/proton/vc_templates/proton_portfolio.php:215
    Stack trace:
    #0 wp-content/themes/proton/vc_templates/proton_portfolio.php(215): implode(' ', NULL)
    #1 wp-content/plugins/js-composer/include/classes/shortcodes/shortcodes.php(478): include('/home/elijac13/...')
    #2 wp-content/plugins/js-composer/include/classes/shortcodes/shortcodes.php(458): WPBakeryShortCode->loadTemplate(Array, '')
    #3 wp-content/plugins/js-composer/include/classes/shortcodes/shortcodes.php(570): WPBakeryShortCode->content(Array, '')
    #4 wp-content/plugins/js-composer/include/helpers/helpers.php(1311): WPBakeryShortCode->output(Array, '')
    #5 wp-includes/shortcodes.php(355): vc_do_shortcode(Array, '', 'proton_portfoli...')
    #6 [internal function]: do_shortcode_tag(Array)
    #7 wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(proton...', 'do_shortcode_ta...', '[proton_portfol...')
    #8 wp-content/plugins/js-composer/include/helpers/helpers.php(236): do_shortcode('[proton_portfol...')
    #9 wp-content/plugins/js-composer/include/templates/shortcodes/vc_column.php(94): wpb_js_remove_wpautop('[proton_portfol...')
    #10 wp-content/plugins/js-composer/include/classes/shortcodes/shortcodes.php(478): include('/home/elijac13/...')
    #11 wp-content/plugins/js-composer/include/classes/shortcodes/shortcodes.php(458): WPBakeryShortCode->loadTemplate(Array, '[proton_portfol...')
    #12 wp-content/plugins/js-composer/include/classes/shortcodes/shortcodes.php(570): WPBakeryShortCode->content(Array, '[proton_portfol...')
    #13 wp-content/plugins/js-composer/include/helpers/helpers.php(1311): WPBakeryShortCode->output('', '[proton_portfol...')
    #14 wp-includes/shortcodes.php(355): vc_do_shortcode('', '[proton_portfol...', 'vc_column')
    #15 [internal function]: do_shortcode_tag(Array)
    #16 wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(vc_col...', 'do_shortcode_ta...', '<div class="row...')
    #17 wp-content/plugins/js-composer/include/helpers/helpers.php(236): do_shortcode('<div class="row...')
    #18 wp-content/themes/proton/vc_templates/vc_row.php(238): wpb_js_remove_wpautop('<div class="row...')
    #19 wp-content/plugins/js-composer/include/classes/shortcodes/shortcodes.php(478): include('/home/elijac13/...')
    #20 wp-content/plugins/js-composer/include/classes/shortcodes/vc-row.php(35): WPBakeryShortCode->loadTemplate(Array, '<div class="row...')
    #21 wp-content/plugins/js-composer/include/classes/shortcodes/shortcodes.php(570): WPBakeryShortCode_VC_Row->content(Array, '[vc_column][pro...')
    #22 wp-content/plugins/js-composer/include/helpers/helpers.php(1311): WPBakeryShortCode->output(Array, '[vc_column][pro...')
    #23 wp-includes/shortcodes.php(355): vc_do_shortcode(Array, '[vc_column][pro...', 'vc_row')
    #24 [internal function]: do_shortcode_tag(Array)
    #25 wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(vc_row...', 'do_shortcode_ta...', '<p>[vc_row css=...')
    #26 wp-includes/class-wp-hook.php(308): do_shortcode('<p>[vc_row css=...')
    #27 wp-includes/plugin.php(205): WP_Hook->apply_filters('<p>[vc_row css=...', Array)
    #28 wp-includes/post-template.php(255): apply_filters('the_content', '[vc_row css=".v...')
    #29 wp-content/themes/proton/page.php(26): the_content()
    #30 wp-includes/template-loader.php(106): include('/home/elijac13/...')
    #31 wp-blog-header.php(19): require_once('/home/elijac13/...')
    #32 index.php(17): require('/home/elijac13/...')
    #33 {main}  thrown

    If you're curious, my website is criticalaxis.org - and you can see, it's not working. Can you help? Thank you! 

    Liz 

  •  933
    Neuron replied

    Hi to all,

    We're about to release an update of the Proton theme today (Wednesday) and it will fix these issues, I'll let you know about anything, I'll contact you via the support system, or you can also send me any email address and as soon as the update is out I'll reach you.

    Feel free to ask for anything you need.

    Kind Regards


  •   phaakon replied privately
  •  5
    phaakon replied

    Hey Neuron
    I don't see an email from you or other info that Proton has an update that was supposed to happen last Wednesday. Can you make this happen ASAP? Its been 3 weeks that my website has been broken because of issues with the theme. Not acceptable.
    Let me know what is happening.
    Peter

  •  5
    phaakon replied

    sheesh you guys
    what is happening? We are almost to a week since you said there would be an update- can you at least let us know what is going on?

  •  933
    Neuron replied

    Hi,

    We sincerely apologize for the delay in releasing the update. We understand your frustration and appreciate your patience. We have been working diligently to ensure that the update meets the highest quality standards.

    To make up for the delay, we have attached the latest version of the Proton theme (version 1.4.9) to this email. You can update the theme by following these steps:

    https://we.tl/t-qszdhLXwIK

    1. Log in to your website's Dashboard.
    2. Navigate to "Appearance" and click on "Themes."
    3. Choose the option to "Upload theme."
    4. Select the zip file of the theme that we have attached.
    5. Once uploaded, activate the updated Proton theme.

    We apologize again for any inconvenience caused by the delay, and we appreciate your understanding. If you encounter any issues during the update process or have further questions, please don't hesitate to reach out to us. We're here to assist you.

    Feel free to ask for anything you need.

    Kind Regards


  • Liz replied

    Hi Neuron, 

    I just updated, according to your instructions, and while my website is back up, it looks nothing like it did before. The entire website was premised on a graphic of an axis that is no longer there. All of the axis elements are gone, and have been replaced with text. Can you please help me get my website back to what it was before. 

    Here is the website after your update: criticalaxis.org

    Here is what it was like before your update: https://web.archive.org/web/20230204185937/http://www.criticalaxis.org/

  •  5
    phaakon replied

    I also followed the instructions- my website is still broken
    - the home page looks fine as it always has but if you click on a portfolio item- all of the images are gone.
    -I tried to activate the new version of WPBakery and it returns a fatal error-

    Fatal error: Cannot declare class Vc_Manager, because the name is already in use in /home/phtpht/phtpht.com/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php on line 14
    -when I try to edit a portfolio item- still no way to add images. 
    This does not appear to have fixed anything- a while back I shared a login for my site- please check it out.

    Peter


  •  5
    phaakon replied

    hey
    can you address these issues ASAP? This is totally unacceptable- there is not point for me to use a theme that does not work.

  •  933
    Neuron replied

    Hi,

    We released an update of the theme yesterday that finally will resolve this issue,  so please first delete the WPBakery Page Builder plugin, then update the theme and install the plugin again by going to Dashboard > Appearance > Install Plugins, the issue is solved now.

    Proton Theme Version 1.4.9

    You can update the theme directly on your dashboard, via the plugin below: 

    https://envato.com/market-plugin/

    Feel free to ask for anything you need.

    Kind Regards



  • Liz replied

    I did what you said, and now the content from my website is missing. I tried to re-install and re-activate the WPBakery Page Builder and it didn't change anything. Can someone please help? 

  •  933
    Neuron replied

    Hi Liz,

    Can you please attach an URL of your site so we can view it?

    Feel free to ask for anything you need.

    Kind Regards


  • Liz replied

    Of course. it's criticalaxis.org

  •  5
    phaakon replied

    I followed the instructions as well (I had already updated to 1.4.9 and still photos that were on each portfolio item are gone, cannot edit and add photos to items and now home page image sizing has also gone funky. 

    my site is phtpht.com

    please fix this



  •  933
    Neuron replied

    Hi,

    I am very sorry for the late reply, we were not working on the weekend.

    @phaakon, I've just fixed the issue in your site, I had to delete the ACF plugins and install them again by going to the Dashboard > Appearance > Install Plugins, and now the images are back on the portfolio item.

    @Liz, can you please create a new ticket, or reach us at [email protected], so we can log into your site and check the issue?

    Feel free to ask for anything you need.

    Kind Regards


  •  5
    phaakon replied

    Thank you- its all working now and I was also able to upgrade to Dreamhost's higher PHP requirement. 

  •  933
    Neuron replied

    You are welcome anytime, feel free to ask for anything you need

    If you like our theme, please leave us a rate of 5 stars at ThemeForest, that would help us a lot.

    Kind Regards,
    NeuronThemes


  • Liz replied

    Can someone please reply to my emails. My website is not fixed, you keep saying you're losing my email in your spam box. This is going on way too long. 

  •  933
    Neuron replied

    Hi Liz,

    I am very sorry for the late reply, we were not working on the weekend.

    The issue on your site was with the permalinks, so I've just set them to "Post name" by going to Dashboard > Settings > Permalinks, and now everything is alright.

    Feel free to ask for anything you need.

    Kind Regards


  • Liz replied

    This is SO upsetting. Why isn't the axis on the front page?? The whole website still looks nothing like it did before. Why won't someone take the time to actually help? This has been going on forever! 

  •  933
    Neuron replied

    Hi Liz,

    Can you please let me know how you created that section, please look at the attached screenshot to see how it is in the editor.

    - https://prnt.sc/T15-hBU4kXEO

    Feel free to ask for anything you need.

    Kind Regards


  • Liz replied

    I'm sorry, I don't know the answer to this, I'm not a dev. I provided you my login and links to the internet archive. I just want to get it back to the way it was before.

  •  933
    Neuron replied

    Hi Liz,

    I am very sorry for the late reply, we were not working on the weekend.

    We've just checked your site once again, and the content-built part of the homepage in the editor seems not to have any additional widgets/elements.

    https://prnt.sc/IPoegaRIzxNu

    Have you used any plugins to create that hero section on the homepage or anything else, so we can help you to bring it back?

    Also, It would be better if you could create a new ticket, as this ticket was created by @phaakon, and his issue has been solved.

    Feel free to ask for anything you need.

    Kind Regards


  • Liz replied

    I would be happy to open a new ticket, but I don't know how to find my purchase code. A developer built the website, but the team has changed, I don't know anyone there now. Have you checked the Internet Archive link I have sent you multiple times now, so you can see the axis? Here's the link again: 

    https://web.archive.org/web/20230204185937/http://www.criticalaxis.org/

    Can you help me open a ticket and can you help me fix my broken website so it's just like it was before? Or just help me fix my broken website without going through the rigamarole of opening a new ticket? 

  • Liz replied

    Following up. Can someone please help? 

  • Liz replied

    Following up. Can someone please help? 

  •  933
    Neuron replied

    Hi Liz,

    Sorry for the late reply, the ticket was marked as solved.

    I've checked the archive several times, and it seems that you have created the hero section by customizing the theme files, I can see in the archive that there is a file added named "matrix.css", have you added it yourself or via a developer, because we need to know if he added it manually or via a plugin.

    Any information you can provide would be really helpful, I'll try to send you an email so we can be in contact faster.

    Feel free to ask for anything you need.

    Kind Regards