Osclass Support Forums

General osclass questions => Report bug => Topic started by: Vlad7 on November 07, 2021, 12:29:30 PM

Title: Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
Post by: Vlad7 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
Title: Re: Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
Post by: Vlad7 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
Title: Re: Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
Post by: MB Themes 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.
Title: Re: Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
Post by: Jhom Gain 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')) {
Title: Re: Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
Post by: MB Themes 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.
Title: Re: Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
Post by: Jhom Gain 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  :)
Title: Re: Fresh installation of osclass-v8.0.0 throws HTTP ERROR 500.
Post by: MB Themes on December 08, 2021, 03:01:08 PM
Glad to hear that, thanks for confirmation  8)