keyra
Forum Replies Created
-
I took some time to test it further based on these:
https://docs.wordfence.com/en/Wordfence_system_requirements#Memory
https://www.watters.ws/mediawiki/index.php/Test_PHP_memory_limitI concluded that this line exceeds the 128MB limit of PHP:
$a = str_repeat(“0”, 132120545);I got this in my log:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 132120577 bytes) in /var/www/html/memtest.php on line 15(132120545 + 32 = 132120577)
I’m still investigating why WordFence (or WordPress) don’t give similar results for available memory.
I think it may be because it is reserved by WordPress, plugins, themes or WordFence as mentioned in WordFence docs. It’s odd and I don’t fully understand it yet.
I now use:
– WordPress 4.6.1
– PHP 7.0.11
– WordFence 6.1.17I still have a similar error:
Wordfence Memory benchmarking utility version 6.1.17.
This utility tests if your WordPress host respects the maximum memory configured
in their php.ini file, or if they are using other methods to limit your access to memory.–Starting test–
Current maximum memory configured in php.ini: 128M
Current memory usage: 8.00M
Setting max memory to 90M.
Starting memory benchmark. Seeing an error after this line is not unusual. Read the error carefully
to determine how much memory your host allows. We have requested 90 megabytes.
<br />
<b>Fatal error</b>: Allowed memory size of 94371840 bytes exhausted (tried to allocate 67108872 bytes) in <b>/home/vhosts/xyz/wp-content/plugins/wordfence/lib/wordfenceClass.php</b> on line <b>3714</b><br />- This reply was modified 9 years, 7 months ago by keyra.
Forum: Plugins
In reply to: [Front End PM] Only admin featureThanks for the info.
Forum: Plugins
In reply to: [SlimStat Analytics] Synchronous XMLHttpRequest deprecatedThanks.
I followed the recommendation regarding site speed and switched to that.
I read a bit about the technicalities about the error and I see why the error is there.
It’s either:
– Render blocking if the site isn’t fast enough (in sync mode)
– There are some potential stat loss (in async mode)Thanks Frank Goossens for the suggestions. 🙂
I took some time to adjust settings and finally found one that seems to work with autoptimize. I’ll test it for some days.
Using Autoptimize 2.0.2:
– Optimize JavaScript Code (checked)
– Force JavaScript in <head> (checked)
– Exclude scripts from Autoptimize: public.js,cvpro.min.js,frontend-builder-scripts.js,wp-slimstat.min.js
– Optimize CSS Code (checked)
– Remove Google Fonts (checked)
– Save aggregated script/css as static files (checked)I’m using these that seem to not be fully compatible with autoptimize:
– Divi (theme from ElegantThemes)
– Content Views (plugin)
– Content Views Pro (plugin)
– WP Slimstat Analytics (plugin)I dropped my number of file requests by a lot and I did get a 0.5-1s gain in speed (from 1.5-2s to 0.5-1s on most pages). I’m on a dedicated server.
Forum: Plugins
In reply to: [Custom Content Shortcode] 1 notice in Network Admin pagesThanks. The notice disappeared after I updated.
Forum: Plugins
In reply to: [Custom Content Shortcode] 1 notice in Network Admin pagesJust a quick note that this notice was also there on PHP 7.0.2.
Forum: Plugins
In reply to: [Custom Content Shortcode] 2 php notices in multisite Network Admin pagesI opened this one which is more current: https://wordpress.org/support/topic/1-notice-in-network-admin-pages?replies=1
I’m closing this one.
Forum: Plugins
In reply to: [Mailgun for WordPress] WordPress Multisite setupNo. You indeed need to configure it.
Forum: Plugins
In reply to: [Custom Content Shortcode] 2 php notices in multisite Network Admin pagesForgot to mention that these changes remove all notices (both under the “Network Admin” and sites) and makes the page under “Settings”->”Custom content” work on sites.
It would need to be tested on a single site setup more thoroughly though.
I really love your plugin Eliot and it’s a real life-saver for me. 🙂
Forum: Plugins
In reply to: [Custom Content Shortcode] 2 php notices in multisite Network Admin pagesI don’t have a single WordPress site available to test it, but I corrected it on my multisite by doing these changes to includes\docs\docs.php on the current version :
delete line 23: $admin_menu_hook = ! is_multisite() ? ‘admin_menu’ : ‘network_admin_menu’;
Change line 24 to: add_action(‘admin_menu’, array($this, ‘content_settings_create_menu’));
Replace line 125 to 141 with:
function plugin_settings_link( $links ) {
$settings_link = ‘<a href=”‘ .
admin_url( ‘admin.php?page=’.self::$state[‘settings_page_name’] ) . ‘”>’
. ‘Reference’;
array_unshift( $links, $settings_link );return $links;
}Remove line 150-151:
if (!isset(self::$state[‘overview_page_hook’]))
self::$state[‘overview_page_hook’] = ”;Add this above line 153: if(!is_network_admin())
Add this above line 632: if(!is_network_admin())
Forum: Plugins
In reply to: [Custom Content Shortcode] 2 php notices in multisite Network Admin pagesLast changes corrected PHP notices in the multisite dashboard under “Network Admin”, but broke the plugin’s added menu item for any site.
The plugin’s page that is supposed to be added under “Settings” (“Custom Content”) is missing.
There’s now a notice displayed on any page of sites mentioning:
Notice: Undefined index: settings_page_hook
Count: 3
Location: wp-content/plugins/custom-content-shortcode/includes/docs/docs.php:114If I try to go directly to the page under:
wp-admin/options-general.php?page=ccs_referenceI get: You do not have sufficient permissions to access this page.
Forum: Plugins
In reply to: [Custom Content Shortcode] 2 php notices in multisite Network Admin pagesMight be related to this one: https://wordpress.org/support/topic/shortcodes-not-working-87
Forum: Plugins
In reply to: [Custom Content Shortcode] Reference Page does not work with PHP 7I had the same issue as OP.
This new version corrected it for me.
Forum: Plugins
In reply to: [Custom Content Shortcode] Reference Page does not work with PHP 7I’m also testing with PHP 7.0.1 and can’t wait for the next version.
I corrected it quickly on mine by following the noted reference.
Thanks.