Skip Navigation

[Resolved] php 7.2 error

This support ticket is created 6 years 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 10 replies, has 2 voices.

Last updated by Nigel 6 years ago.

Assisted by: Nigel.

Author
Posts
#1145602

I am trying to: Just make my solution work with 7.2

Link to a page where the issue can be seen: The site is now running in php 7.0 to make sure customers can use the website.

I expected to see: No error

Instead, I got:
FILE: /customers/5/b/6/m4arkitekter.dk/httpd.www/wp-content/plugins/layouts-customiser/library/toolset-site-installer/library/otgs/installer/includes/installer.class.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2465 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /customers/5/b/6/m4arkitekter.dk/httpd.www/wp-content/plugins/layouts-customiser/library/toolset-site-installer/installer/library/wordpress-importer/wordpress-importer.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
884 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove ambiguity.

#1145728

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Bo

This is an old site using the Layouts Customiser integration plugin, would that be right?

Could I get your debug info?

hidden link

#1150445

I don't understand what you mean with - an old site. Every thing is updated - but I am having trouble updating Toolset.
If you need access to the site I would like to provide that.

#1150447

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I was looking for your debug info to confirm what plugins you are using on the site (it seems like you are using the old Layouts customiser integration plugin from the error message).

It is helpful—meaning we can provide quicker support—if you provide the debug info when you create a forum thread.

I'll set your next reply as private and I can look directly.

You may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site, even though I don't intend to make any changes other than possibly to temporarily add a backup plugin to take a snapshot of the site.

The error occurs on the plugin page when updating plugins, is that correct?

#1150484

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Bo

I looked at the site, and, yes, you are using the Toolset Customizer Integration plugin, which appears to be responsible for the errors.

However, you are not using the Customizer theme that the integration plugin was intended for. (You are using a Genesis child theme.)

So the integration plugin should be redundant.

I'm not familiar with your site so I can't check.

Can you disable the plugin and verify that it makes no difference to the site?

#1150486

Hi Nigel

I will try to disable the plugin now.
Herafter test how the site react.
I will get back later

Thank you

#1150676

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Sure, okay, let me know.

#1150817

Hi Nigel

So I tried to go from php 7 to 7.2 after a PHP Compatibility check.

But I still have issues. This is waht I got:
JQMIGRATE: Migrate is installed, version 1.4.1
jquery.js?ver=1.12.4:2 Uncaught Error: Syntax error, unrecognized expression: {"status":"Nothing found"}
at Function.fa.error (jquery.js?ver=1.12.4:2)
at fa.tokenize (jquery.js?ver=1.12.4:2)
at fa.select (jquery.js?ver=1.12.4:2)
at Function.fa (jquery.js?ver=1.12.4:2)
at Function.a.find (jquery-migrate.min.js?ver=1.4.1:2)
at n.fn.init.find (jquery.js?ver=1.12.4:2)
at n.fn.init.a.fn.find (jquery-migrate.min.js?ver=1.4.1:2)
at a.fn.init.n.fn.init (jquery.js?ver=1.12.4:2)
at new a.fn.init (jquery-migrate.min.js?ver=1.4.1:2)
at n (jquery.js?ver=1.12.4:2)

I have deactivated the Genises template to see if that changed something. Still testing.

Br
Bo

#1150821
php-7-2-error.jpg

Hi again

I hope you can help identify - if this still has to do with Toolset.

Best regards
Bo

#1150826

Sorry for the spam.

But this is an error from our backend:

_function() is deprecated in /customers/5/b/6/m4arkitekter.dk/httpd.www/wp-content/plugins/php-code-widget/execphp.php on line 62 Warning: Cannot modify header information - headers already sent by (output started at /customers/5/b/6/m4arkitekter.dk/httpd.www/wp-content/plugins/php-code-widget/execphp.php:62) in /customers/5/b/6/m4arkitekter.dk/httpd.www/wp-admin/includes/misc.php on line 1126

I am lost here - really hope you can see a connection between the errors.

Best
Bo

#1151220

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

That error says the problem occurs with a plugin called PHP code widget, disable that plugin and the error should disappear (but so too, of course, will the plugin functionality).