BenRobertson
Forum Replies Created
-
Forum: Plugins
In reply to: [WebP Express] SetEnvSorry about the excessive code.
Here are the summaries from test 2 (Testing redirection to converter) –
Making a HTTP request for the test image (pretending to be a client that supports webp, by setting the “Accept” header to “image/webp”). FAILED
Request URL: https://allurban-uat.mytimpani.co.uk/wp-content/uploads/webp-express-test-images/LHiHgO.JPEG
Response: 500 Internal Server ErrorHere are the summaries from test 3 (Create webp files upon request?)
However. As the “content-type” header reveals, we did not get a webpSurprisingly we got: “text/html; charset=UTF-8”
The test FAILED.Thanks,
BenForum: Plugins
In reply to: [WebP Express] SetEnvHi,
I am still failing on the 2nd and 3rd tests. This time the plugin is not breaking the site but the most of the images are no appearing. Below is a copy of the test code which are failing. I was hopping to attached a screen shot of the settings to make sure all look OK but not possible through this tread.
[ 1,029,048 characters removed ]
- This reply was modified 5 years, 2 months ago by Jan Dembowski.
Forum: Plugins
In reply to: [WebP Express] SetEnvHi Rosell,
I am still having problems. Getting this message –
+++++++++++++++++++++++++++
Sep 19 11:54:40 tp-web02-a apache2-error [Thu Sep 19 10:39:04.945544 2019] [php7:error] [pid 9069] [client 10.7.45.27:48536] PHP Fatal error: Uncaught Exception: Cannot get relative path from document root to dir without resolving to directory traversal. It seems the dir is not below document root in /data/shardstor02/home/161a313b13fawgsi/public_html/wp-content/plugins/webp-express/lib/classes/PathHelper.php:162\nStack trace:\n#0 /data/shardstor02/home/161a313b13fawgsi/public_html/wp-content/plugins/webp-express/lib/classes/Paths.php(476): WebPExpress\\PathHelper::getRelPathFromDocRootToDirNoDirectoryTraversalAllowed(‘/data/shardstor…’)\n#1 /data/shardstor02/home/161a313b13fawgsi/public_html/wp-content/plugins/webp-express/lib/classes/SelfTestHelper.php(44): WebPExpress\\Paths::getCacheDirForImageRoot(‘separate’, ‘doc-root’, ‘uploads’)\n#2 /data/shardstor02/home/161a313b13fawgsi/public_html/wp-content/plugins/webp-express/lib/classes/SelfTestRedirectAbstract.php(71): WebPExpress\\SelfTestHelper::cleanUpTestImages(‘uploads’, Array)\n#3 /data/shardstor02/home/161a313b13fawgsi/public_html/wp-content/plugins/webp-express/lib/classes/SelfTestRedirectAbstract in /data/shardstor02/home/161a313b13fawgsi/public_html/wp-content/plugins/webp-express/lib/classes/PathHelper.php on line 162, referer: https://allurban-uat.mytimpani.co.uk/wp-admin/options-general.php?page=webp_express_settings_page
+++++++++++++++++++++++++
Technical support from my hosting company commented –
I’m not sure why the plugin isn’t using the WordPress core functions for finding where directories are. It seems they’re worked out that wp-content is a symlink, and they’re trying to work out exactly where it’s full path on the system is. I’m not sure if there’s any reason they need the full path, on linux, they can ignore the fact there’s a symlink there, and it should Just Work for basically anything?
At a guess, what’s might be catching them out is that they’re might be trying to recurse through the open_basedir restriction we set as an additional restriction to what any one site can access so we can monitor if someone’s trying to break out of their jail (they’d typically hit open_basedir restrictions, causing logs whilst playing).
+++++++++++++++++++++++++
I hope this helps and thanks for sticking with this issue. If this is turning out too mch work don’t worry but I would really like to use this plugin. On other hosting where I have had a sucessfully set up it’s had a very positive impact.
Thanks,
BenForum: Plugins
In reply to: [WebP Express] SetEnvThanks again for looknig into the this problem. With the new version I am getting fatal error, when trying to activate the plugin –
Fatal error: Uncaught Exception: Cannot get relative path from document root to dir without resolving to directory traversal. It seems the dir is not below document root in /data/shardstor02/home/161a313b13fawgsi/public_html/wp-content/plugins/webp-express/lib/classes/PathHelper.php:162 Stack trace: #0 /data/shardstor02/home/161a313b13fawgsi/public_html/wp-content/plugins/webp-express/lib/classes/Paths.php(476): WebPExpress\PathHelper::getRelPathFromDocRootToDirNoDirectoryTraversalAllowed(‘/data/shardstor…’) #1 /data/shardstor02/home/161a313b13fawgsi/public_html/wp-content/plugins/webp-express/lib/classes/HTAccessRules.php(234): WebPExpress\Paths::getCacheDirForImageRoot(‘separate’, ‘doc-root’, ‘themes’) #2 /data/shardstor02/home/161a313b13fawgsi/public_html/wp-content/plugins/webp-express/lib/classes/HTAccessRules.php(779): WebPExpress\HTAccessRules::redirectToExistingRules() #3 /data/shardstor02/home/161a313b13fawgsi/public_html/wp-content/plugins/webp-express/lib/classes/HTAccess.php(417): WebPExpress\HTAccessRules:: in /data/shardstor02/home/161a313b13fawgsi/public_html/wp-content/plugins/webp-express/lib/classes/PathHelper.php on line 162
Forum: Plugins
In reply to: [WebP Express] SetEnvHi Rosell,
Thanks for the great support on this. This does not work for me, I have made the updates as recommended and its still breaks the site. I am sure its SetEnv as I have the plugin working great on a different site with more or less the same set up (same theme and plugins) but hosting which allows SetEnv and is working great.
Thanks,
Ben