Issue Activating Sh...
 
Notifications
Clear all

Issue Activating Shop Class Theme

11 Posts
3 Users
7 Reactions
91 Views
(@nootkan)
Posts: 29
Eminent Member
Topic starter
 

Hello finally found the time to start a new project idea I've had for a while and installed Osclass Enterprise 3.10.1. So far happy with it but when installing free themes from Enterprise Market and activating them I had some issues with the Shop Class theme.

All themes installed successfully and when I checked each one by activating they all activated except for shop class theme.  I received a 500 error which usually means server config issue but when checking my logs there was nothing to indicate this was the case.  Is there something in the theme that keeps it from working with the enterprise theme?  Has anyone else seen this happen?

This topic was modified 4 months ago by nootkan
 
Posted : June 22, 2024 07:51
Editor
(@editor)
Posts: 553
Honorable Member Admin
 

Hi,

Error 500 is a generic error. Can you try to enable debug to  a log?

https://www.valueweb.gr/your-complete-guide-to-troubleshooting-osclass/

 
Posted : June 22, 2024 10:25
nootkan reacted
(@nootkan)
Posts: 29
Eminent Member
Topic starter
 

Thanks for your reply. 

Sorry I forgot to mention that I went through my apache, domain, modsecurity, suexe and suphp error logs which are usually the culprit but nothing in any of them indicate an issue.

Thanks for the link I'll activate the debug log to see if it can shed some light.

 
Posted : June 22, 2024 19:03
(@nootkan)
Posts: 29
Eminent Member
Topic starter
 

Well that was fast, have to remember to try the debug log in the future before scouring my server logs. 

I tried to google some of the errors but alas my php skills are lacking.

If it helps my server information is:

Apache Version 2.4.59
Database Version Mysql 8.0.37
Architecture x86_64
Operating System AlmaLinux v8.10.0 STANDARD
Php version 8.1
Kernel Version 4.18.0-477.27.2.el8_8.x86_64

Here is the content of the debug log:

[22-Jun-2024 09:07:37 America/Vancouver] PHP Deprecated: Optional parameter $class declared before required parameter $translate is implicitly treated as a required parameter in /home/mywebsite/public_html/oc-content/themes/shopclass/includes/classes/tfcAdminFormRegister.php on line 214
[22-Jun-2024 09:07:37 America/Vancouver] PHP Deprecated: Optional parameter $placeholder declared before required parameter $translate is implicitly treated as a required parameter in /home/mywebsite/public_html/oc-content/themes/shopclass/includes/classes/tfcAdminFormRegister.php on line 214
[22-Jun-2024 09:07:37 America/Vancouver] PHP Deprecated: Optional parameter $class declared before required parameter $helptext is implicitly treated as a required parameter in /home/mywebsite/public_html/oc-content/themes/shopclass/includes/classes/tfcAdminFormRegister.php on line 285
[22-Jun-2024 09:07:37 America/Vancouver] PHP Deprecated: Optional parameter $class declared before required parameter $helptext is implicitly treated as a required parameter in /home/mywebsite/public_html/oc-content/themes/shopclass/includes/classes/tfcAdminFormRegister.php on line 317
[22-Jun-2024 09:07:37 America/Vancouver] PHP Deprecated: Optional parameter $placeholder declared before required parameter $helptext is implicitly treated as a required parameter in /home/mywebsite/public_html/oc-content/themes/shopclass/includes/classes/tfcAdminFormRegister.php on line 317
[22-Jun-2024 09:07:37 America/Vancouver] PHP Deprecated: Optional parameter $class declared before required parameter $translate is implicitly treated as a required parameter in /home/mywebsite/public_html/oc-content/themes/shopclass/includes/classes/tfcAdminFormRegister.php on line 361
[22-Jun-2024 09:07:37 America/Vancouver] PHP Deprecated: Optional parameter $placeholder declared before required parameter $translate is implicitly treated as a required parameter in /home/mywebsite/public_html/oc-content/themes/shopclass/includes/classes/tfcAdminFormRegister.php on line 361
[22-Jun-2024 09:07:37 America/Vancouver] PHP Deprecated: Optional parameter $class declared before required parameter $fieldFunction is implicitly treated as a required parameter in /home/mywebsite/public_html/oc-content/themes/shopclass/includes/classes/tfcAdminFormRegister.php on line 454
[22-Jun-2024 09:07:37 America/Vancouver] PHP Fatal error: Uncaught Error: Call to undefined function phpinfo() in /home/mywebsite/public_html/oc-content/themes/shopclass/admin/adminForms.php:521
Stack trace:
#0 /home/mywebsite/public_html/oc-content/themes/shopclass/admin/adminForms.php(578): tfcRegisterPhpInfoForm()
#1 /home/mywebsite/public_html/oc-content/themes/shopclass/functions.php(101): require_once('/home/mywebsite...')
#2 /home/mywebsite/public_html/oc-includes/osclass/WebThemes.php(76): require_once('/home/mywebsite...')
#3 /home/mywebsite/public_html/oc-includes/osclass/WebThemes.php(58): WebThemes->__construct()
#4 /home/mywebsite/public_html/oc-includes/osclass/core/BaseModel.php(62): WebThemes::newInstance()
#5 /home/mywebsite/public_html/oc-includes/osclass/core/SecBaseModel.php(28): BaseModel->__construct()
#6 /home/mywebsite/public_html/oc-includes/osclass/core/AdminSecBaseModel.php(23): SecBaseModel->__construct()
#7 /home/mywebsite/public_html/oc-admin/appearance.php(23): AdminSecBaseModel->__construct()
#8 /home/mywebsite/public_html/oc-admin/index.php(99): CAdminAppearance->__construct()
#9 {main}
thrown in /home/mywebsite/public_html/oc-content/themes/shopclass/admin/adminForms.php on line 521

 

Hopefully this is the issue and can be fixed.

This post was modified 4 months ago by nootkan
 
Posted : June 22, 2024 19:29
Editor
(@editor)
Posts: 553
Honorable Member Admin
 

ok, the developer @enterpriseclassifieds will help you out for the FATAL error that stops the website.

The rest notices (deprecated) are just notices from PHP 8.1 and are harmless.

 
Posted : June 22, 2024 19:45
nootkan reacted
EnterpriseClassifieds
(@enterpriseclassifieds)
Posts: 46
Trusted Member
 

First of all, please note that the latest Osclass Enteprise version is v3.10.2. Make sure you're on this version.

Secondly, on the ShopClass Theme page (bottom), is stated that the max supported PHP version is 7.4.x. It's a nightmare to make this compatible to PHP 8+ and the effort is really not worth it. Therefore, it hasn't been tested with newer PHP versions. Make sure you test it thoroughly.

Now, regarding the fatal error at install, this is caused by your hosting environment which is apparently blocking/missing the phpinfo() function/directive.

I just released an update (v1.6.1) that should fix this issue. Please uninstall/delete the version you have, and redownload the new one from the website.

Let me know if this fixes your issue.

Enterprise Classifieds

 
Posted : June 22, 2024 20:56
nootkan reacted
EnterpriseClassifieds
(@enterpriseclassifieds)
Posts: 46
Trusted Member
 

Because today I got some free time on my hands, I released another update to ShopClass, that fixes some other long-standing issues.

Enjoy v1.6.2!

Enterprise Classifieds

 
Posted : June 23, 2024 17:46
nootkan reacted
Page 1 / 2