Abigailm
Forum Replies Created
-
Unfortunately, your changes to wpFastestCache.php have not resolved the problem. Since replacing that file I have 26 repetitions of this error:
27-Jun-2017 21:22:47 UTC] PHP Recoverable fatal error: Object of class WP_Error could not be converted to string in //wp-includes/kses.php on line 1249This is where the preload setitings for “attachments” are not activated.
I will try reactivating that preload setting and report back as to whether the error continues.
Oh, I already did — long time ago! (And sorry, the system doesn’t allow me to add more than 5 stars — I’d give 10 stars if I could).
Thank you — I have uploaded the new file with the changes and will monitor the error logs and let you know if I see any further issues.
The problem is that the error logs can grow to a large size very quickly, which can lead to problems for sites hosted with restricted disk quotas. Obviously I am aware of this and am monitoring, but I have seen situations where large log files cause problems with server function.
I may have found a solution though it is too soon to know for sure.
It appears that this problem is caused by the new preload attachment function coded at line 1170 of wpFastestCache.php
if($number > 0 && $pre_load->attachment > -1){I checked my preload settings and it was not set to preload attachment (because that function didn’t exist for previous versions– so I changed the settings to check that option as well.
I haven’t seen the error mesage since I did that about an hour ago. So I’m hoping that did the trick (though I really don’t feel it valuable on this particular site to cache attachments).
Forum: Fixing WordPress
In reply to: kses.php problemI’m also using WP Fastest Cache and suspect that is the source of the issue — I am running this plugin on 10+ sites but only one with the problem. I turned on debugging and the debug log shows entries like this:
[26-Jun-2017 23:24:06 UTC] PHP Notice: Undefined property: stdClass::$attachment in //wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 1170 [26-Jun-2017 23:24:06 UTC] PHP Notice: Array to string conversion in //wp-includes/class-requests.php on line 797 [26-Jun-2017 23:24:06 UTC] PHP Recoverable fatal error: Object of class WP_Error could not be converted to string in //wp-includes/kses.php on line 1249I’m going to report this to the plugin developer.
Forum: Fixing WordPress
In reply to: kses.php problemDo you have a caching plugin on your site? If so, which one?
I am thinking it might be a caching related area because when I make changes to the site that would clear the cache, the error messages stop for about an hour or so and then start up again.
Forum: Fixing WordPress
In reply to: kses.php problemI’ve been seeing the same error on one of my sites:
PHP Recoverable fatal error: Object of class WP_Error could not be converted to string in [path]/kses.php on line 1249But in my case it is happening sporadically, roughly once every 5-7 minutes- and began around June 22.
I’ll search code of various plugins to see if I can find a clue & post again if I can figure anything out.
- This reply was modified 8 years, 11 months ago by Abigailm.
I have now resolved this problem on my own and am going to detail what I did to solve it in case anyone else has similar problems.
1) I did find a different error_log that I had overlooked, in the wp-admin subdirectory (which had grown to about 12 megs). This had entries like:
WordPress database error Table 'username_wp123.wp_wfHoover' doesn't exist for query SHOW FULL COLUMNS FROMwp_wfHoovermade by do_action('wp_ajax_nopriv_wordfence_doScan'), WP_Hook->do_action, WP_Hook->apply_filters, wordfence::ajax_doScan_callback, wfScan::wfScanMain, wfScanEngine->go, wfScanEngine->doScan, wfScanEngine->scan_fileContents_main, wordfenceScanner->scan, wordfenceURLHoover->hoover, wordfenceURLHoover->writeHosts, wfDB->queryWriteI decided to try a clean reinstall.
2) In Wordefence options, I exported my wordfence settings to created a token.
3) In Wordfence options, I checked the box to delete wordfence tables and data on deactivation.
4) I deactivated and deleted Wordfence.
5) I reinstalled Wordfence from the wordpress plugin repository.
6) I imported my previously set options using the token I had created.
7) I ran a scan — this time it was successful.
So I can only guess that somewhere along the line some entry had been corrupted and that Wordfence was not correctly identifying the database, and that with a clean install I forced Wordfence to recreate all tables and solved the problem.
From revising the wp-admin/error_log, it looks like this problem might have originated in February with an error: “The table ‘wp_wfFileMods’ is full for query insert” — which occurred right before the wfHoover doesn’t exist errors started appearing. So perhaps the problem originated when Wordfence was unable to write important data to to wfFileMods.
Forum: Themes and Templates
In reply to: [Responsive] “Cannot modify header information” error in 2.7Same issue here.
Deleting the blank line 109 from functions-admin.php seems to have fixed it. (If not, I’ll roll back to a previous version until the developer can get things right)
Sure. Here’s what the last lines of the activity log shows with debug mode on:
[Jun 20 17:11:16:1498003876.689335:4:info] Scan process ended after forking. [Jun 20 17:11:16:1498003876.658167:10:info] SUM_KILLED:Previous scan terminated with an error. See below. [Jun 20 17:11:16:1498003876.657860:2:error] Scan terminated with error: Unable to query database [Jun 20 17:11:16:1498003876.504768:4:info] Calling Wordfence API v2.23:https://noc1.wordfence.com/v2.23/?v=4.8&s=https%3A%2F%2Fwww.OMITTED.org&k=59311af5a7d2d49979fe7e309df8015cf5ce27e50841e5554fea87e3d1c04d5c2c40aa8d4ce7c5e57f2df7f389106bb0e62286ce0195b70d9f1372920baec36a7b9a122a669e6cf53a62f4eba5aa6617&openssl=268439647&phpv=7.1.6&betaFeed=0&cacheType=disabled&action=record_scan_metrics [Jun 20 17:11:16:1498003876.503582:2:info] Done file contents scan [Jun 20 17:11:16:1498003876.502088:4:info] Using MySQLi directly. [Jun 20 17:11:16:1498003876.501814:4:info] Gathering host keys. [Jun 20 17:11:16:1498003876.501506:2:info] Asking Wordfence to check URLs against malware list. [Jun 20 17:11:16:1498003876.501077:2:info] Scanned contents of 161 additional files at 9.53 per second [Jun 20 17:11:16:1498003876.500575:4:info] No files remaining for malware scan.I am not seeing any errors being logged by wordpress.
The site’s apache logs shows some Mod Security errors — they look like this:
[Tue Jun 20 17:11:37.501714 2017] [:error] ModSecurity: collections_remove_stale: Failed to access DBM file "/tmp/global": Permission denied [hostname "_____"] [uri "/cgi-sys/ea-php71/wp/index.php"] [Tue Jun 20 17:11:37.501770 2017] [:error] ModSecurity: collections_remove_stale: Failed to access DBM file "/tmp/ip": Permission denied [hostname "____"] [uri "/cgi-sys/ea-php71/wp/index.php"] [Tue Jun 20 17:11:37.501812 2017] [:error] ModSecurity: Audit log: Failed to lock global mutex: Permission denied [hostname "_____"] [uri "/cgi-sys/ea-php71/wp/index.php"] [Tue Jun 20 17:11:37.502106 2017] [:error] ModSecurity: Audit log: Failed to unlock global mutex: Permission denied [hostname "_____"] [uri "/cgi-sys/ea-php71/wp/index.php"]Read my post above and use the WP Rollback plugin:
https://wordpress.org/plugins/wp-rollback/There is a tutorial you can follow here:
http://www.wpbeginner.com/plugins/how-to-rollback-wordpress-plugins-version-control-for-beginners/- This reply was modified 9 years ago by Abigailm.
1. It’s always a good idea to backup before any change, but switching PHP shouldn’t cause problems if you have easy access to change it back again.
2. There are some differences between PHP 7.0 and 7.1 so in some cases problems will show up on one but not the other.
3.If it works for you, PHP 7.1 is best because it is the newest stable version so will be better to have long term.
4. I am currently running PHP 7.1 on all my wordpress sites without a problem. I did see some errors in my logs for some plugins on some sites when I first upgraded, and I notified developers of the errors I saw. They have all fixed whatever problems were indicated. But it is a good idea to monitor your wordpress error logs for a day or so after upgrade.
5. I did report an error with PHP 7.1 for evolve about 2 months ago — but the developer (romiko) fixed it with an upgrade. No problems since. But there is always the possibility of conflict with another plugin, especially if you have plugins installed that have not been updated recently. I didn’t see any problems that were visible on my sites or that interfered with functions, just occasional “PHP warning” errors.
The WP-Rollback plugin https://wordpress.org/plugins/wp-rollback/ will work – it doesn’t matter if it was installed prior to the upgrade or not.
The WP-Rollback does not rely on the user database – it simply replaces the theme or plugin files with whatever version the user selects, downloading and installing the appropriate files from the repository. It is doing the same thing as the user downloaded the earlier theme version and manually installed it, except doing it automatically.
It is a very easy and useful plugin and I have it installed on all my sites.
But I also think that upgrading to PHP 7, if available, is the best idea. It will avoid problems in the future as more and more developers design for PHP 7 and PHP 7.1
Forum: Themes and Templates
In reply to: [evolve] Gap between header and menu@angelica2201 – this is a support thread for the Evolve theme. You are using a different theme.
Because templates and custom styles are different depending on theme, you will need to get support from the developer of your own theme.
(I am guessing you found this old thread by a word search for the problem you are experiencing — perhaps if you added your theme name to your search it might lead you the right place).
- This reply was modified 9 years ago by Abigailm.
Forum: Themes and Templates
In reply to: [evolve] Syntax error in social-buttons.php in evolve 3.7.4Agreed, Evolve is an excellent theme, though maybe not for beginners. It is also one of the most well-maintained over time, and Romik provides excellent and courteous online support.