Kind regards,
There’s a screenshot of how your exception handler displays errors.
As you can see, there are no line number or anything, this is how it should look:
]]><a>
link followed by a <script>
that processes whatever.<script>
has no code, it just points to a src=""
and has some other data attributes.
How do I exclude this kind of inline script from the SGO JS combine feature?
I tried using the filter “sgo_javascript_combine_excluded_inline_content” but it wants me to put the “first few symbols” of the script. Problem is, the script is empty because it just has the src=""
and no inner code.
So how do I exclude this kind of script from being combined?
As a side note, it could really help if we can exclude it within the tag attributes themselves, like if we did <script sgo-combine-exclude src=""></script>
. Then we can exclude it manually right in the tag itself.
I’m having a sudden issue related to Shield. All was well on Friday, but today I get a fatal error message when trying to access my website.
I disabled Shield with forceoff so I could get in there. I also checked my error log. Below is the basic gist of the error. I removed the site directory info as noted in brackets [ ], but the rest will give you an idea of what is happening.
PHP Fatal error: Declaration of FernleafSystems\Wordpress\Plugin\Shield\Modules\AuditTrail\Lib\LogHandlers\LocalDbWriter::write(array $record) must be compatible with Monolog\Handler\AbstractProcessingHandler::write(array $record): void in /[removed site directory info]/wp-content/plugins/wp-simple-firewall/src/lib/src/Modules/AuditTrail/Lib/LogHandlers/LocalDbWriter.php on line 26
I also saw an another error as follows:
[ERROR] : WPO_ADVANCED_CACHE constant is not present in advanced-cache.php
Based on those two errors, I found that disabling WP-Optimize, and then renabling Shield works. So, for now, I have WP-Optmize disabled. (Note: I was not using this plugin for caching purposes, just so you know.)
Any idea what might be going on between the two plugins? My PHP version is 7.4, WordPress is version 6.0, and all themes and plugins are up-to-date.
Appreciate your time and assistance.
-M
]]>I want to compare users with shop manager role with the handler user id.
I read that you store it in “_billing_shop_as_client_handler_user_id”, but where do i find it?
]]>after updating from PHP 7.4 to PHP 8.0 I got the following error and my WooCommerce is not activating anymore:
Fatal error: Only variables can be passed by reference in /home/www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-download-handler.php on line 518
Is there anyone who can help me? Everything else is okay but I cannot activate Woocommerce anymore. If going back to PHP 7.4. everything is okay again.
Please help me – thanks! Best regards
]]>JQMIGRATE: Migrate is installed with logging active, version 1.4.1 jquery-migrate-1.4.1-wp.js:23:17
JQMIGRATE: jQuery.fn.toggle(handler, handler...) is deprecated jquery-migrate-1.4.1-wp.js:56:12
console.trace() jquery-migrate-1.4.1-wp.js:58:13
jQuery 2
<anonym> https://localhost:8888/website-url/wp-content/plugins/wp-accessibility/js/longdesc.button.js?ver=1.0:21
jQuery 2
<anonym> https://localhost:8888/website-url/wp-content/plugins/wp-accessibility/js/longdesc.button.js?ver=1.0:3
<anonym> https://localhost:8888/website-url/wp-content/plugins/wp-accessibility/js/longdesc.button.js?ver=1.0:27
are you planning to update the jquery anytime soon?
]]>I recently upgraded PHP & mySQL versions and when logging in to the admin dashboard I noticed 2 things:
1) When moving through the dashboard, pages would randomly fail to load properly; just an unstyled white screen with a vertical list of dashboard links
2) I received this helpful notification from BPS:
HUD Check: PHP/php.ini handler htaccess code check PHP/php.ini handler htaccess code was found in your root .htaccess file, but was NOT found in BPS Custom Code.
…followed by a code snippet to be copied & pasted in to the custom code editor:
# PHP/php.ini handler htaccess code
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
Excellent (so far)! After I pasted it in & clicked encrypt & save, I carried on working in the admin dashboard. BUT the intermittent page loading problem persisted – only in the dashboard. I checked the source code on one of these broken pages and compared with an unbroken page & the code was the same on both. Then I checked the browser debugger and saw this:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
…so I disabled script concatenation using the config file (added this to wp-config.php):
define(‘CONCATENATE_SCRIPTS’, false);
This worked as a short term fix and suggested this is a plugin-related problem. So I removed define(‘CONCATENATE_SCRIPTS’, false); and started disabling plugins. As soon as I disabled BPS the problem went away.
After MUCH testing, I determined the problem was:
a) the missing PHP.ini handler code AND
b) the blank spaces before “AddHandler” in the code snippet provided by the BPS plugin.
In other words, THIS:
# PHP/php.ini handler htaccess code
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
SHOULD be THIS:
# PHP/php.ini handler htaccess code
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
I’m not 100% sure this is completely resolved, but so far, so good (no more broken admin pages).
pk
I’m trying to enqueue all my js, to see if that improve my load speed.
When I try to get each handler with these lines in the functions.php (I don’t kwno another way):
function head_scripts_handle() {
global $wp_scripts;
foreach( $wp_scripts->queue as $handle ) :
echo $handle,’ ‘;
endforeach;
}
add_action( ‘wp_print_scripts’, ‘head_scripts_handle’ );
I only get some handlers, about 23, and if I go to the source code of my site I see 32 js.
There is a way to get all the handlers? And for example:
JS Handle
script.js script handle
So, I will have the script X belong to the handler X (there are a few scripts that I can’t identify the handler).
Thanks in advance!
]]>