Tagged: php
-
AuthorPosts
-
March 7, 2016 at 4:49 pm #594424
We’ve had an intermittent problem on the following site http://www.storageunits.company which has resulted in customer enquiries being lost.
We recently removed the contact module and replaced it with a plugin which collected enquiries on the site, then sent out the email enquiry to the client. This has enabled us to identify, after one week of trialling, that 3 enquiries have come in through the form but no email was generated while another enquiry has generated an email but there is no record of them in the system.
As we’ve been able to identify exact times and dates of these enquiries we’ve raised this with our host who says that the error logs being generated point toward PHP depreciation being the cause of this intermittent fault.
They are currently running PHP 5.6 on the server and have asked me to check which version of PHP the theme is scripted in so that we can either roll back or, if this is a known problem and a fix is in progress, you can let me know.
Please advise.
March 12, 2016 at 9:14 pm #597263Hi!
I don’t think this has to do with the theme as you’re using a third-party plugin to handle your enquiries, a WordPress theme serves as an appearance, Enfold does have some functionality but it doesn’t touch the mailing functionality of WordPress/PHP.
In any case the theme is meant to work with pretty much any current version of PHP (5.4, 5.5, 5.6, etc).
Cheers!
JosueMarch 14, 2016 at 10:56 am #597651Hi Josue
We only moved to a third party module when the same issues were being experienced with the theme (except we had no way to track them as it didn’t records when people filled in the enquiry form).
The host can roll back the PHP version on the server as the cause appears to be PHP depreciation, but they need to know what the script was developed in first.
Tricia
March 14, 2016 at 7:59 pm #597947Hi!
PHP deprecation is related to a specific function, which function -from the theme- is considered deprecated? if you have access to the logs that will be able to tell which, in any case i’d say you can safely rollback to 5.4 as it is the version most people use with Enfold.
A “deprecated function” error looks like this:
Deprecated: Assigning the return value of new by reference is deprecated in /home//public_html/hub/wp-settings.php on line 662
Regards,
JosueMarch 14, 2016 at 8:25 pm #597960Link to error log sent privately.
This website has no other plugins enabled, only the “leads” plugins which was installed on 29/2/16 in a bid to get a handle on the cause of this problem. Prior to that we were using the contact form included in the theme but enquiries were going missing regularly.
The errors predate the installation of this specific plugin, leaving only the theme as potential cause.
If you can shed any light on cause I’d be most grateful.
March 14, 2016 at 9:01 pm #597979Hey!
It seems the culprit is the use of
HTTP_RAW_POST_DATA
, you can do two things, rollback to a version of PHP lesser than 5.6 or set ‘always_populate_raw_post_data’ to ‘-1’ in php.ini.Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.