This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Vlad7

  • ****
  • 244 posts
Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
« on: November 07, 2021, 12:29:30 PM »
At the moment I tried to install the new osclass-v8.0.0. I copied the files to the server and got the error on the page - The host cannot process this request at this time.
HTTP ERROR 500

*

Vlad7

  • ****
  • 244 posts
Re: Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
« Reply #1 on: November 07, 2021, 01:19:45 PM »
At the moment I tried to install the new osclass-v8.0.0. I copied the files to the server and got the error on the page - The host cannot process this request at this time.
HTTP ERROR 500


I forgot to clarify that I am installing in PHP8

*

MB Themes

Re: Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
« Reply #2 on: November 08, 2021, 08:18:35 AM »
@Vlad7
Always you get Error 500, you must enable error logging to be able to check what are errors behind.
PHP 8 is OK.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Jhom Gain

  • **
  • 8 posts
Re: Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
« Reply #3 on: December 08, 2021, 11:26:54 AM »
I was also getting Error 500
Then, I enabled Error Logging.

Error is as follow:

Fatal error: Uncaught Error: Undefined constant "OC_ADMIN_FOLDER" in F:\ProgramFiles\Xampp\htdocs\OSCLASS\oc-includes\osclass\helpers\hErrors.php:108 Stack trace: #0 F:\ProgramFiles\Xampp\htdocs\OSCLASS\oc-load.php(42): osc_get_absolute_url() #1 F:\ProgramFiles\Xampp\htdocs\OSCLASS\index.php(25): require_once('F:\\ProgramFiles...') #2 {main} thrown in F:\ProgramFiles\Xampp\htdocs\OSCLASS\oc-includes\osclass\helpers\hErrors.php on line 108


How I solved this?


I added
define('OC_ADMIN_FOLDER', 'oc-admin');
in "oc-load.php" before if (!file_exists(ABS_PATH . 'config.php')) {

Marked as best answer by kelembet on December 09, 2021, 09:40:04 AM
*

MB Themes

Re: Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
« Reply #4 on: December 08, 2021, 12:03:27 PM »
Re-download 8.0.0, it was fixed already.
Issue was in hErrors.php, additional check has been added to identify if OC_ADMIN_FOLDER is defined or no.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Jhom Gain

  • **
  • 8 posts
Re: Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
« Reply #5 on: December 08, 2021, 01:11:17 PM »
Re-download 8.0.0, it was fixed already.
Issue was in hErrors.php, additional check has been added to identify if OC_ADMIN_FOLDER is defined or no.

Oops! Sorry!!!

I download v8.0.0 - a month ago and did fresh installation today.
After using latest v8.0.0, it is working great.

Thanx  :)

*

MB Themes

Re: Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
« Reply #6 on: December 08, 2021, 03:01:08 PM »
Glad to hear that, thanks for confirmation  8)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots