*

Nagy Csaba

  • ***
  • 70 posts
Error 500 after update to 4.0 in admin area
« on: September 27, 2020, 11:28:42 AM »
Hi! upgraded from 3.9 to 4.0 and i got 500 error after admin login
[27-Sep-2020 12:13:00 Europe/Bucharest] PHP Warning:  require(/home/xxxxxx/xxxxxx/oc-admin/themes//main/index.php): failed to open stream: No such file or directory in /home/xxxxx/xxxxxxx/oc-includes/osclass/helpers/hDefines.php on line 185
[27-Sep-2020 12:13:00 Europe/Bucharest] PHP Fatal error:  require(): Failed opening required '/home/onejobro/oneauto.ro/oc-admin/themes//main/index.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/xxxxxxx/xxxxxxxx/oc-includes/osclass/helpers/hDefines.php on line 185



This is in hDefines.php on line 185


function osc_current_admin_theme_path($file = '') {
        require AdminThemes::newInstance()->getCurrentThemePath() . $file;
    }



*

MB Themes

Re: Error 500 after update to 4.0 in admin area
« Reply #1 on: September 27, 2020, 01:55:53 PM »
Do you have main/index.php file?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MB Themes

Re: Error 500 after update to 4.0 in admin area
« Reply #2 on: September 27, 2020, 01:56:13 PM »
On that path you see in error
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nagy Csaba

  • ***
  • 70 posts
Re: Error 500 after update to 4.0 in admin area
« Reply #3 on: September 27, 2020, 05:33:42 PM »

*

MB Themes

Re: Error 500 after update to 4.0 in admin area
« Reply #4 on: September 28, 2020, 07:51:35 AM »
@Nagy
Ok I see now problem, you miss "omega" word in URL, there are 2 possible problems:
1) oc-admin/themes/omega folder does not exists. If not, copy it from downloaded zip
2) In oc_t_preference table, make sure that row with s_name = "admin_theme" has s_value set to: omega
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots