Woocomerce product images/galleries not showing & Essential Grid/Site issues

We have been having a number of issues in regards to our site after migrating from localhost to a webserver.

The main issue at hand is that Woocommerce product images/galleries will not load. We have downgraded our version of woocommerce to 3.5.1, turned off all plugins and still have the issue. The only way I have been able to get these images to load was by switching to a default Wordpress theme.

Essential grid is giving us an issue with a post-type grid we created. When loading the page with the grid, it loads very slow & keeps freezing/hanging. Also, our posted videos will not play within Essential Grid’s light-box, this message pops up instead “The requested content cannot be loaded. Please try again later.” When we click on the link to open the post in another tab, the content loads no problem. When trying to edit this grid, the editor also keeps hanging/freezing.

Our site also seems to load extremely slow and is a bit sluggish. Wondering if there any recommendations or if there is a way to optimize this theme so it doesn’t load so slow. Also, we get an error in regards to layerslider on our of our pages even though it loads fine (noticed this after turning debugging on to try and pinpoint these issues).

I have searched the support forum and have tried just about everything recommended to other uses with no luck. Links and login credentials are provided in the secure note!

Hello @ktisisadmin,

Thanks for writing in! We haven’t been able to log in to your site because you haven’t provided your WP login url. Please do so.

Meanwhile, you are probably having caching issue. I checked your site and it appears that you have installed JetPack plugin. Please find the Photon module or the Site Accelerator settings and disable the “Speed up images load time”.

And then I noticed that there is index.php in your permalink. Please go to Settings > Permalinks and make sure to remove that to prevent any issues with Cornerstone and the Theme Options section.

Please let us know if this works out for you.

I went ahead and added the login url for WP.

In regards to jetpack, that was installed due to our load times being so high. I changed the site accelerator setting for “Speed up images load time” to be disabled and am not seeing a noticeable difference navigating to the site or when using https://tools.pingdom.com.

I looked under Settings>Permalinks and did not see the index.php you are referring to in the permalink or how to remove it. Sorry, I am not a web developer and may have overlooked something!

Hello @ktisisadmin,

I have logged in to your site and I was able to find out why the images do not display. It is because you added this custom css:

.wp-post-image {
    display: none;
}

Please remove this code. And I also noticed that in your staging site, Theme Options and the editor is not loading because of CORS (Cross Origin Resource Sharing) issue. To resolve this, please edit the wp-config.php file of your staging site and check the secure note for the lines that needs to be added:

Please let us know how it goes.

Ok, I went ahead and removed the custom CSS and it is now working. The only issue is that we use this custom CSS to hide the featured images on our posts and would like to retain that functionality without removing pictures from our product. I was unaware that they shared a common class identifier.

I still am not finding where to alter the index.php under the permalinks.

I also do not see a secure note in regards to the wp-config.php edit you are recommending.

The page shared that has our essential grid is also still extremely buggy. Any suggestions?

Thank you so far for all of your help!

Hey @ktisisadmin,

If you want to hide the featured images in your post, you will have to use this code instead:

.single-post .entry-featured{
    display: none;
}

The index.php were already removed in your permalink. Please ignore that one already.

With the essential grid page, there is a fatal error. You have exhausted your PHP memory limit. ​We recommend that you increase your memory allocated to PHP. To increase it, please edit your wp-config.php file and insert these lines:

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

You can add it before the line
/*That's all, stop editing! Happy Blogging. */

We would loved to know if this has work for you. Thank you.

1 Like

Thank you for helping us find the right class identifier, it worked!

I checked on the wp-config.php file and saw that we already had memory_limit options set at 1024M. I went ahead and changed it to the values that you recommended and still no luck. I also saw that our ‘WP_HOME’ & ‘WP_SITEURL’ are set to http rather than https, should I change this? When trying to edit the grid, it is stuck loading for a while and then i’m met with a blank white page. When trying to access the page that the grid in question is put on, Pro editor is stuck in a loading loop and the Wordpress editor gives me a memory error.

Also, in regards to the layerslider error, I still have not been able to resolve this. The error is shown at the top of the page and the images/thumbnails in the slider will not load now.

I’ve also noticed that throughout this troubleshooting process, the Wordpress dashboard is sometimes unresponsive. For example: when working in the post editor, the WP sidebar will not allow me to navigate elsewhere in the dashboard unless I hit the back button in my browser to go back a previous page or two.

Thank you again for all the help!

Hello @ktisisadmin,

To better help you resolve this issue, Would you mind providing us the FTP login credentials so we can take a closer look and fix the issue?

To do this, you can make a post with the following info:

  • FTP Hostname
  • FTP Username
  • FTP Password

Thank you.

1 Like

No problem, in the secure note i will provide this information.

Hi,

I have logged in to FTP but could not find what folder your site is.

May I know what folder is it in so we can check.

Thanks

The WP installation is located in the folder labeled ‘rcracing’

Hi There @ktisisadmin

Thanks for the information provided. I have inspected your error log (/rcracing/wp-content/debug.log) and I see that you have so many errors recorded including PHP memory limit issues.

Some of the errors as follows:

[20-Dec-2018 19:58:43 UTC] PHP Fatal error:  Out of memory (allocated 181403648) (tried to allocate 3038971 bytes) in /hermes/bosnacweb01/bosnacweb01aq/b209/ipg.ktisiscocom/rcracing/wp-includes/formatting.php on line 852

[21-Dec-2018 00:36:02 UTC] PHP Fatal error:  Out of memory (allocated 181665792) (tried to allocate 3222437 bytes) in /hermes/bosnacweb01/bosnacweb01aq/b209/ipg.ktisiscocom/rcracing/wp-includes/formatting.php on line 852

[21-Dec-2018 00:54:48 UTC] WordPress database error User 'ktisisadmin' has exceeded the 'max_questions' resource (current value: 75000) for query INSERT INTO wp_options (option_name, option_value, autoload) VALUES ('jpsq_sync-1545353688.783470-612090-1', 'a:6:{i:0;s:21:\"jetpack_sync_constant\";i:1;a:2:{i:0;s:15:\"WP_MEMORY_LIMIT\";i:1;s:4:\"256M\";}i:2;i:0;i:3;d:1545353688.783381;i:4;b:0;i:5;a:14:{s:13:\"wpcom_user_id\";N;s:16:\"external_user_id\";i:0;s:12:\"display_name\";N;s:10:\"user_email\";N;s:10:\"user_roles\";a:0:{}s:15:\"translated_role\";N;s:7:\"is_cron\";b:0;s:7:\"is_rest\";b:0;s:9:\"is_xmlrpc\";b:0;s:10:\"is_wp_rest\";b:0;s:7:\"is_ajax\";b:0;s:11:\"is_wp_admin\";b:1;s:6:\"is_cli\";b:0;s:8:\"from_url\";s:102:\"https://ktisisco.com/rcracing/wp-admin/admin.php?page=stats&noheader&proxy&chart=admin-bar-hours-scale\";}}','no') made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Jetpack_Sync_Sender->do_sync, Jetpack_Sync_Sender->do_sync_and_set_delays, Jetpack_Sync_Sender->do_sync_for_queue, do_action('jetpack_sync_before_send_queue_sync'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Jetpack_Sync_Module_Constants->maybe_sync_constants, do_action('jetpack_sync_constant'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Jetpack_Sync_Listener->action_handler, Jetpack_Sync_Listener->enqueue_action, Jetpack_Sync_Queue->add

Then I have checked your current server configurations as well and see you have 512MB memory limit. Even though you have increased your memory limit to 1024MB through your wp-config.php file, some hosting providers do not allow to increase it manually. In such cases, you need to contact them to resolve such issues. You can ask them to inspect your debug.log file to get more information.

The other thing you can do is, since you’re having 31 active plugins, you can try disabling some of the least important plugins and see if that resolves your issue.

Thanks!

Sorry for the late response, had a long Holiday and just getting back to it.

I went ahead and checked on the logs and in all honesty, it doesn’t make much sense to me. I have also disabled a bunch of plugins and not seeing much of an improvement. I am still unable to edit/view the page/essential grid that has been giving us issues. We also are still seeing the errors in regards to Layerslider and are unsure as to how we can fix this. To my understanding, it sounds like we are having memory issues with our host that is causing all these errors to pop up? Just looking for clarification before I get in contact with our host.

TYIA!

Hi there,

Yes, that is right. If you are getting an error message that suggests: Fatal error: Allowed memory size of xxxxx bytes exhausted, it means that you need to have the PHP memory limit of your site increased.

Please get in touch with your hosting provider and have them increase your PHP memory limit.

Thank you.

Ok, Thank you for the clarification. Will get in touch with hosting provider.

You’re welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.