Website issues due to Themeco PHP error

Hi there,

After updating the WordPress Production environment I started having issues on the website, e.g. category on the posts repeating itself 6 times, or posts colliding in the archive section. I received these critical errors in WP Engine Error Log which I believe could cause those issues:

PHP Fatal error: Uncaught Error: Class ‘Themeco\Theme\Theme’ not found in /nas/content/live/tech2020stag/wp-content/themes/x/functions.php:26\nStack trace:\n#0 /nas/content/live/tech2020stag/wp-settings.php(566): include()\n#1 /nas/content/live/tech2020stag/wp-config.php(143): require_once(’/nas/content/li…’)\n#2 /nas/content/live/tech2020stag/wp-load.php(50): require_once(’/nas/content/li…’)\n#3 /nas/content/live/tech2020stag/wp-blog-header.php(13): require_once(’/nas/content/li…’)\n#4 /nas/content/live/tech2020stag/index.php(17): require(’/nas/content/li…’)\n#5 {main}\n thrown in /nas/content/live/tech2020stag/wp-content/themes/x/functions.php on line 26

Cannot serve directory /nas/wp/www/sites/tech2020/wp-content/themes/twentytwentyone/assets/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive

Could you please help me to resolve those issues.

Thanks!

Hi @web2020,

Thanks for reaching out.
There might be different possible reasons for the issue and can help after having the exact error(s). Please add the below-given code into your wp-config.php for debug setup and the error logged into the file name debug.log inside the wp-content folder.

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
//SET PHP INI DISPLAY ERROR FALSE
@ini_set( 'display_errors', 0 );

Please find the video that will help you to edit wp-config.php and add the above code: https://www.youtube.com/watch?v=3SDPTafEM8o
You can let us know if you find any error that is related to our theme or theme bundled plugins. We need the following credentials for further investigation based on the information.

– WordPress Site URL & Login URL
– WordPress Admin username/password
– FTP/CPanel details to access the files.

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi @tristup,

Could you please provide your email so I could create a WordPress user account and give you the credentials?

Thanks!

Hey @web2020,

We can’t provide any email address, just create a user with your email and put the credentials in the secure note.

Thank you.

Hi,

Sorry for not responding for so long. I was extremely busy.

Our server runs on WinSCP. As far as I know you cannot create users over SFTP protocol/WinSCP. I could have attached the debug.log file but you cannot upload any other files except for the images.

Let me know if you need anything else.

Thanks

Hello @web2020,

I tried to access your site dashboard but given login details are not working on my end. Please recheck and send us again. I also checked your site it seems that there is no error on the frontend at the moment.

In case the issue still persists at your end I would suggest please make sure your theme, plugin, WordPress, and the PHP version are updated as per our version compatibility page.

If it doesn’t work for you I would request you please share your correct login details with FTP or Cpanel details so that we can check it at our end.

Hope it helps
Thanks

Hello @web2020,

By withdrawing the post, I believe you already have resolved the issue. If the issue still existed, you can let us know.

Thanks

Hi,

Sorry about the last post. I deleted unintentionally.

Hey @web2020,

I check your staging website but I don’t see the error anymore. On the other hand, would you mind telling us where can we replicate this issue?

e.g. category on the posts repeating itself 6 times, or posts colliding in the archive section.

Providing screenshots or videos is a great help.

Thank you.

Hi @marc_a,

When you click on the post category it leads you to the Category Archive where you can see the error (see the attached image). I couldn’t replicate the colliding posts error as I saw it only once.

Thanks

Hi @web2020,

I have checked your issue repetitive category and found that exists with the WordPress default theme like Twenty Twenty One. I investigated further and found that the plugin named Yoast Duplicate Post is the reason behind your issue, I temporarily deactivated the plugin and now the issue is resolved.

NOTE: There is a serious problem with the login in your WordPress admin dashboard, it got logged out with every click.

Thanks

Hi @tristup,

Thank you for pointing out and fixing the issue with a plugin.

What would you recommend to do in order to resolve the login problem?

Thanks

Hey @web2020,

I suggest disabling all the plugins to check if it’s a plugin conflict.

Hope that helps and let us know how it goes.

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