Robert Trevellyan
Forum Replies Created
-
Any update on this?
Forum: Plugins
In reply to: [BlogVault Backup & Staging] BlogVault not showing itself as a pending updateGot it, thanks.
Yes, I was able to recover my settings. Mostly I wanted to flag the issue because there could be a lot of site owners who don’t know that their firewall is disabled.
- This reply was modified 7 years, 4 months ago by Robert Trevellyan.
🙂
Never mind, I’ve discovered that option only works when there is no custom error message defined.
Thanks again Mika!
Thanks Mika @ipstenu, I have a ticket open in the DreamHost system for the domain trevellyan.biz.
DreamPress is a premium, VPS-based, WordPress-optimized hosting service, so I would expect different considerations to apply vs basic shared hosting.
Anyway, the error has not occurred again. Thanks for your help.
Here’s the response from DreamHost:
===================================================
Phar is installed by default, but is not enabled by default. To enable it for your domain you can add this to your .user.ini (or phprc) file:
extension = phar.so
===================================================I went with a .user.ini, since that will work across php versions, and so far, so good (I was at least able to save the WooCommerce settings with Geolocate enabled).
Should we lobby DreamHost to enable Phar by default? Seems like it might be a common problem.
PHP version is 7.0.30. I’ll check with DreamHost regarding installation of PharData.
The site is running on DreamPress, so I can’t spin up an other copy on the same server. I could clone it somewhere else, if you think that might shed any light.
Anyway, after a couple of cron job runs reported the error described above, there have been no more cron error reports since yesterday (the job runs hourly).
But I went ahead and changed the “Default customer location” setting “No location by default”, and saved it. Then I tried setting it back to Geolocate, and got a 500 error. Fortunately, when I refreshed the page, the setting reverted to “No location”. Then I tried “Geolocate (with page caching support)” and got another 500 error, and the setting reverted again when I refreshed.
With WP_DEBUG defined, the reported error is:
Fatal error: Uncaught Error: Class 'PharData' not found in /REDACTED/wp-content/plugins/woocommerce/includes/class-wc-geolocation.php:269 Stack trace: #0 /REDACTED/wp-content/plugins/woocommerce/includes/class-wc-geolocation.php(126): WC_Geolocation::update_database() #1 /REDACTED/wp-includes/class-wp-hook.php(288): WC_Geolocation::maybe_update_database('geolocation', '') #2 /REDACTED/wp-includes/plugin.php(203): WP_Hook->apply_filters('geolocation', Array) #3 /REDACTED/wp-includes/option.php(312): apply_filters('pre_update_opti...', 'geolocation', '', 'woocommerce_def...') #4 /REDACTED/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-settings.php(845): update_option('woocommerce_def...', 'geolocation', 'yes') #5 /REDACTED/wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-general.php(378): WC_Admin_Settings::save_fields(Array) #6 /REDACTED in /REDACTED/wp-content/plugins/woocommerce/includes/class-wc-geolocation.php on line 269The Apache error log is empty.
Secondary question: what is the difference between those two Geolocate settings?
There must be something I don’t understand about how Photon works. I assumed it was pull based, i.e. the first time a request is made to https://iN.wp.com/example.com/wp-content/uploads/image.jpg, the CDN would pull the image from //example.com/wp-content/uploads/image.jpg. That’s why I figured Lazy Images might help if there were a performance or throttling issue, because the requests would not all happen simultaneously.
When you say “the page is finished loading before Photon is able to load all of the images”, it seems to imply that all the requests are sent simultaneously, regardless of whether Lazy Images is enabled.
I wish I had a good answer for you, but I don’t. I suggested trying Lazy Images because @tmmbecker implied that there might be a problem with performance or timing. Just now, I saw an error loading https://i2.wp.com/www.hungrycactus.com/wp-content/uploads/totorohouse-8-of-18.jpg?w=1040, but about a minute later the image loaded.
Maybe the wp.com CDN used by Photon is throttling your requests. Have you tried using a different CDN, e.g. CloudFlare, instead of Photon/wp.com?
What about:
3. Enable Lazy Images?Would that also solve @hungrycactus’s problem?
Forum: Themes and Templates
In reply to: [GeneratePress] Menu links not working with windows phoneI asked, “were you able to navigate to the Sample Page and Full Width Content pages on your phone?”
He replied, “It works well.”
Best I can do without being there.