• Resolved ghchris

    (@ghchris)


    Just updated the free version of the script and my site only displays “Parse error: syntax error, unexpected ‘[‘ in …/wp-content/plugins/ultimate-product-catalogue/Functions/UPCP_WC_Integration.php on line 262”.

    Worked great before the update, now.. not so. I don’t know if its a plugin conflict or what. Any idea of how I can go about fixing this?

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,
    On my client site I was getting the same error.
    I replaced line 262 from:
    if (!is_object($Category)){ $Category = (object)[];}
    with
    if (!is_object($Category)){ $Category = (object)array(“”);}
    it looked like it worked now and the catalog is back.
    but I am not sure if this is the problem. please make a backup of the file if you want to make any change.

    Thread Starter ghchris

    (@ghchris)

    You are a genius Raniagk! That appears to have fixed it.. Many maholo (thank you)!

    Excellent! great to know

    Also having this issue. Any way to restore the client side without loading backups? This has totally disabled my entire site.

    This normally happens because you are using a version of PHP older than 5.4 (e.g. 5.3), which doesn’t support that code. If you just upgrade the version of PHP being used on your server to 5.4 or newer (which should be done, anyway, as 5.3 is quite old), then it will be able to parse that code.

    Hi Etoile,

    Thanks for replying on this. You got it exactly right. I went in today and applied the fix mentioned above and updated my PHP version and everything is right to go.

    All the best,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error After Update’ is closed to new replies.