Posted: November 9, 2018 at 9:09 am
|
I am having some issues with event espresso. Our currency changed from CAD to USD, and we cannot change it as the GENERAL SETTINGS page doesn’t load. I checked the Getting the following error in logs:
Is there a way we can quickly switch to CAD using a database replace or something? This is very urgent as our client is taking payments on their site for an upcoming event. Thanks, |
Hi Alex, I’m afraid there isn’t a viable option to replace the values in the database for this, because the ee_config object is stored in the database as a serialized object. Since the error message appears to be truncated, maybe you can activate WP_DEBUG mode so we can get the error message generated by WordPress? You can activate WP_DEBUG mode by going in to the wp-config.php file and change
Then you’ll try to load the General Settings page again and this time it will output an error message. |
|
|
|
I wonder if there’s a missing file within your copy of the Event Espresso 4 plugin. Can you try reinstalling? You can download a fresh copy of EE4 from your account page, then go to your site’s WP dashboard Plugins page. Then you deactivate & delete EE4, and install & activate the new copy. |
|
|
Hi Josh, I deleted the plugin and reinstalled it as per your instructions, same issue. I also tried re-uploading the files via FTP, same issue. Any other suggestions? |
I would not advise to re-upload the files via FTP. That could actually cause issues, especially if the files were not deleted from the server before re-uploading. May I ask is there any PHP byte code caching set up on this server? e.g. APC, Opcache, or even hhvm? |
|
|
I renamed the old folder before uploading it via FTP to avoid any issues. There is no opcache and we disabled cloudflare and wp rocket, the issue persists. |
That’s also problematic (renaming the older folder). Can you delete it instead? Then, you go to WP > Plugins and if there are more than one listing of Event Espresso there, delete all but one of them? Then, you deactivate the remaining plugin, then re-activate. |
|
|
Still having the same issue. I’m currently copying the website to another environment (plesk) instead of runcloud to see if that fixes the issue. Will update here. |
Runcloud’s documentation says:
https://runcloud.io/docs/atomicdeployment/deployment-script.html#writing-your-deployment-script If I assume you’re not using Atomic Git deployment, then maybe there’s a way to clear the PHP Opcache manually. |
|
|
Hi Josh, I’ve tried moving the site to another server in a plesk environment, I’m having the same issue. Do you have any other suggestions? Thanks |
|
Hi Josh, I disabled all other plugins on the site, as well as changed the theme to 2017, the issue persists. I’m still getting an error in my plesk logs, but the error isn’t appearing when I set WP_DEBUG to true.
|
We can look into this other issue, but on the original site, did you look into how to clear the PHP Opcache? If not, I can advise to contact your host to find out how to properly update files on the server so that the opcache gets cleared as opposed to switching hosts because opcache isn’t necessarily a bad thing to have. |
|
|
Hi Josh, I can confirm that we don’t use OPcache on both the servers we tested this on. We host these ourselves using Runcloud & Plesk so I am 100% sure. |
May I ask why does Runcloud’s documentation mention Opcache if no opcache?
https://runcloud.io/docs/atomicdeployment/deployment-script.html#writing-your-deployment-script |
|
|
Hi Josh, I apologize, I didn’t make myself clear, this is Alex’s colleague – Mukul. I manage the servers for our business. Yesterday, to isolate the issue I went ahead and cleared opcache on Runcloud and Plesk, then I disabled it manually by modifying the opcache.ini file for PHP 7.2 /etc/php72rc/conf.d/opcache.ini as so : zend_extension=opcache.so Then I restarted php 7.2 on the server and nothing changed with the issue. I also deactivated all other plugins except EE and switched the 2017 wp default theme on the site and we still had the issue. So yes, I can confirm that OPCache is currently not active and I don’t think that is the issue. Please let me know if you have any more suggestions or questions. This a high priority production issue for us, so any help would be much appreciated. Our problem is that customers are being charged in USD instead of CAD and if there is any workaround to correct that, it can buy us some time to fix the actual issue. |
Hi, I checked with the developers and Opcache is the only thing they could think of that would cause the changing of the order of class constructor parameters (which is the issue that’s happening on your runcloud served site). EE is loading the constructor parameters for classes using PHP Reflection Maybe you can try running these commands in the terminal of the runcloud server?
|
|
|
The apcu one didn’t give back a response. Here is the one for opcache: root@web01:~# php -i | grep -I opcache |
If you can complete the secure form on this page, we can investigate further: |
|
|
Hi Josh, I have setup SFTP and a WP admin account and submitted the info at the above link. Thanks, Mukul |
Hi, Thanks for sending. While I cannot figure out why your site is getting the params mixed up on the General Settings page, I did find that you can access the Country settings page. You can access the Country settings page by going to your live site’s WP dashboard, then input this into the end of the URL: There, you can set the Country Currency Code to CAD. You’ll set that for the United States in this case, because your site isn’t allowing to change anything on the General settings page. After you make the change, you click Save. Then you’ll likely need to clear all caches. This will effectively change the currency on the site to use Canadian dollars. |
|
Update: One of the developers was able to investigate your site today, and added a bit of code to the dev site’s /core/EE_Network_Config.core.php file, and the General Settings page loads there now. It may be one of the other plugins loading things onto that page managed to alter one of the properties, so the fix just makes sure those properties are set up correctly. You can copy that file over to your production site, then the production site’s General Settings page should load OK. |
|
The support post ‘General Settings page will not load’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.