• Resolved egointllc

    (@egointllc)


    I logged into my website to update my theme/plugins, After i did so, the website wouldn’t let me update my WooCommerce and turned to a error page saying,
    “Parse error: syntax error, unexpected ‘:’, expecting ‘{‘ in /home/gonyekfo/public_html/wp-content/plugins/woocommerce/woocommerce.php on line 56”
    so i updated my php to 7.3 and refreshed the page, then this error came up,
    “500 Internal Server Error This is a temporary server error. Please try to reload the webpage later. If you are the webmaster of this site please log in to Cpanel and check the Error Logs. You will find the exact reason for this error there. -Common reasons for this error are: Incorrect file/directory permissions: Above 755. In order files to be processed by the webserver, their permissions have to be equal or below 755. You can update file permissions with a FTP client or through Cpanel”

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    What does the server logs say in regards to the 500 error? That will help get to the bottom of this. If you don’t have access to those logs, your host likely will.

    Thread Starter egointllc

    (@egointllc)

    my server logs don’t say anything, i can’t get into my website at all. and in my cpanel my server logs are empty

    Hi, I am having the same issue with my site.
    Parse error: syntax error, unexpected ‘:’, expecting ‘{‘ in /home/anan1568/public_html/wp-content/plugins/woocommerce/woocommerce.php on line 56
    There has been a critical error on your website.

    Line 56 reads as follows
    function wc_get_container() : \Psr\Container\ContainerInterface {
    return $GLOBALS[‘wc_container’];

    My server error reads
    2020-08-25 05:53:36.432027 [INFO] [1043689] [51.79.86.177:48822#APVH_anythingreptiles.com.au:443] File not found [/home/anan1568/public_html/403.shtml]

    WordPress version 5.5
    Current theme: Bridge Child (version 1.0.0) Current plugin: WooCommerce (version 4.4.0) PHP version 7.4.9

    Please advise

    • This reply was modified 4 years, 3 months ago by vhsreptile.
    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi all,

    I cannot replicate the problem. Check the status report to see if the active theme has template overrides, updating them will be a good starting place.

    We support WooCommerce to make sure it is working as expected.

    As a starting point and to ensure that’s the case, we’ll recommend you to try switching back to a default theme like Twenty Twenty and disabling all plugins except for WooCommerce to see if this resolves the problem.

    Here is a link that better outlines that process:

    https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4

    If this fixes the issue, then re-enable each plugin one at a time, then the theme, until you find the one that’s causing the conflict. You can then contact the developer of that plugin or theme.

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @egointllc and @vhsreptile. We haven’t heard back from you in a while so I’m going to go ahead and mark this thread as resolved. If you still need help with this issue or have any other questions about the WooCommerce plugin, please start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Parse error and 500 Internal Server Error’ is closed to new replies.