Skip to content

PHP Parse error for wordpress.com sites #979

@kushh23

Description

@kushh23

Description

When Optimole is activated on wordpress.com hosted sites, a few users are getting critical error during access to wp-admin with this line as the error log

PHP Parse error: syntax error, unexpected namespaced name "Photon_Subsizes_OptimoleWP\Off...", expecting identifier in /wordpress/mu-plugins/photon-subsizes/photon-subsizes.php(139) : eval()'d code on line 1

To solve we have to temporarily cancel this line in code - https://github.com/Codeinwp/optimole-wp/blob/master/inc/v2/Offload/Loader.php#L28

But we should work on a permanent fix here, it seems related to JetPack

Step-by-step reproduction instructions

NA

Screenshots, screen recording, code snippet or Help Scout ticket

Image

https://secure.helpscout.net/conversation/2981890891/467194
https://secure.helpscout.net/conversation/3094342530/473257

Environment info

No response

Is the issue you are reporting a regression

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis label could be used to identify issues that are caused by a defect in the product.customer reportIndicates the request came from a customer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions