Skip Navigation

[Resolved] unexpected ‘::’in elementor.php when using PHP lower than 7.0

This thread is resolved. Here is a description of the problem and solution.

Problem:
When you activate Toolset Views and Elementor, using PHP lower than 7.xx, this error will be thrown on screen:

PHP Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) in .../wp-views/application/controllers/compatibility/elementor.php on line 109

Solution:
Update Toolset

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 7 replies, has 2 voices.

Last updated by Ben 6 years, 1 month ago.

Assisted by: Beda.

Author
Posts
#1116599

Ben
Screenshot 2018-09-27 at 19.14.24.png

I ran an update through the WordPress dashboard and now I am getting a HTTP Error 500 due to the View plugin I believe.

I am getting the following in my error logs:

PHP Parse error: syntax error, unexpected '::' in ROOT/wp-views/application/controllers/compatibility/elementor.php on line 109

#1116923

Hello, and thanks for the report.

I have another ticket with the same report:
https://toolset.com/forums/topic/elementor-compatibility-conflict-with-views/

I am on it and will feedback here.

The issue may be PHP5.6. I have a similar development environment with PHP7.0 and the elementor, elementor pro and all of the toolset plugins appear to be working with woocommerce as desired.
(From another user)

#1116934

I replicated this issue successfully, and confirm it is a PHP version problem, solved above PHP 7.xx

I am filing the report to the developers so we can fix it.

#1117603

This is solved in Views as you can find it in the downloads area or on the Plugins update page (2.6.4.2)

#1120104

Ben

Thank you for all your help Beda!

#1120105

Ben

When I was getting the error, I changed the folder name from /wp-views/ to disable it so I could gain access to my site.

I have now updated the plugin from within WordPress. It seems to have changed the older folder back to its original name rather than use a new folder. Is that expected?

#1120440

You updated the Plugin so it's expected that the files will be again as they where or better, they'll be as the developer ships them to you.

Please let me know if you need further help.

#1121697

Ben

Thank you for all your help again Beda!