Jameth12
Forum Replies Created
-
Forum: Plugins
In reply to: [No unsafe-inline] HTTP ERROR 500 – troubleshooting functions.phpThe tag capture is working now! That invalid URL was being generated by an incorrectly enqueued script within functions.php.
Thank you so much for your help and for pinpointing the issue!
Forum: Plugins
In reply to: [No unsafe-inline] HTTP ERROR 500 – troubleshooting functions.phpThank you, but same crash with the developer version unfortunately. Learning as I go, the error logs within CP File Manager weren’t the right ones to be looking at, I needed to be looking at the latest error messages at a higher level in cPanel tools. It shows a handful of logs all with identical content, here’s one:
[Tue Apr 23 02:02:12.070337 2024] [lsapi:error] [pid 4086348:tid 23349990254336] [remote 94.192.115.19:63537] [host www.tsl.com] Backend fatal error: PHP Fatal error: Uncaught League\\Uri\\Exceptions\\SyntaxError: The port
unpkg.com
is invalid in /home/cosnvb59uf13/public_html/web.tsl-hid.com/wp-content/plugins/no-unsafe-inline/vendor/league/uri/src/UriString.php:382\nStack trace:\n#0 /home/cosnvb59uf13/public_html/web.tsl-hid.com/wp-content/plugins/no-unsafe-inline/vendor/league/uri/src/UriString.php(359): League\\Uri\\UriString::filterPort('unpkg.com')\n#1 /home/cosnvb59uf13/public_html/web.tsl-hid.com/wp-content/plugins/no-unsafe-inline/vendor/league/uri/src/UriString.php(323): League\\Uri\\UriString::parseAuthority('www.tsl.comhttp...')\n#2 /home/cosnvb59uf13/public_html/web.tsl-hid.com/wp-content/plugins/no-unsafe-inline/vendor/league/uri/src/Uri.php(468): League\\Uri\\UriString::parse('https://www.tsl...')\n#3 /home/cosnvb59uf13/public_html/web.tsl-hid.com/wp-content/plugins/no-unsafe-inline/src/Nunil_Capture.php(894): League\\Uri\\Uri::createFromString('https://www.tsl...')\n#4 /home/cosnvb59uf13/public_html/web.tsl-hid.com/wp-content/plugins/no-unsafe-inline/src/Nunil_Capture.php in /home/cosnvb59uf13/public_html/web.tsl-hid.com/wp-content/plugins/no-unsafe-inline/vendor/league/uri/src/UriString.php on line 382\nForum: Plugins
In reply to: [No unsafe-inline] HTTP ERROR 500 – troubleshooting functions.phpApologies for the late reply, and thank you for your help! I did try extending memory limit but still experienced the same crash. I also checked the error log file but couldn’t see anything being reported at the time of the crash. I’ll do some further tests to make sure I haven’t missed something.
Thank you for pointing out the unrelated error, thats very kind of you. We will look further into that.
Forum: Plugins
In reply to: [No unsafe-inline] HTTP ERROR 500 – troubleshooting functions.phpIt appears in about 8 php templates, like search.php, index.php, archive.php and the home page template to show a short text excerpt
e.g. https://www.tsl.com/?s=MC67
<div class="entry-content"> <?php show_content_snippet( $post, 200 ); ?> </div>
Hi there,
Thank you so much for looking into this – i tried out version v1.3.73.8 but unfortunately the problem is still there.
Someone a lot more knowledgeable than myself will be having a look at my setup this afternoon so hopefully we’ll be able to give you some more feedback than just “it doesn’t work”!
Kind regards,
James
Hi Jeff,
I used the fantastic WP-Rollback plugin which was very easy to use, but yes there are risks with using this sort of plugin (Make sure you read the warnings and follow the backup/testing advice on the plugin page first).
Kind regards,
James