*

orangentle

  • **
  • 5 posts
errors after posting ads
« on: November 20, 2022, 05:23:58 AM »
Hello, my website has a problem. Can't post new Listings. There is an error as follows.


[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Notice:  Undefined index: locale in /oc-includes/osclass/emails.php on line 367
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Warning:  current() expects parameter 1 to be array, null given in /oc-includes/osclass/emails.php on line 367
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Notice:  Trying to access array offset on value of type bool in /oc-includes/osclass/emails.php on line 372
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Notice:  Trying to access array offset on value of type bool in /oc-includes/osclass/emails.php on line 372
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Notice:  Trying to access array offset on value of type bool in /oc-includes/osclass/emails.php on line 373
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Notice:  Trying to access array offset on value of type bool in /oc-includes/osclass/emails.php on line 373
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Notice:  Trying to access array offset on value of type bool in /oc-includes/osclass/emails.php on line 389
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Notice:  Trying to access array offset on value of type bool in /oc-includes/osclass/emails.php on line 390
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Notice:  Trying to access array offset on value of type bool in /oc-includes/osclass/emails.php on line 391
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Notice:  Trying to access array offset on value of type bool in /oc-includes/osclass/emails.php on line 392
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Notice:  Trying to access array offset on value of type null in /oc-includes/osclass/emails.php on line 402
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Notice:  Trying to access array offset on value of type null in /oc-includes/osclass/emails.php on line 405
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Notice:  Trying to access array offset on value of type bool in /oc-includes/osclass/emails.php on line 410
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Notice:  Trying to access array offset on value of type bool in /oc-includes/osclass/emails.php on line 411
[20-Nov-2022 11:05:50 Asia/Bangkok] PHP Fatal error:  Uncaught Error: Call to a member function numRows() on bool in /oc-includes/osclass/model/Admin.php:70
Stack trace:
#0 /oc-includes/osclass/model/Admin.php(52): Admin->__construct()
#1 /oc-includes/osclass/helpers/hUsers.php(198): Admin::newInstance()
#2 /oc-includes/osclass/classes/database/DBConnectionClass.php(178): osc_is_admin_user_logged_in()
#3 [internal function]: DBConnectionClass->__destruct()
#4 {main}
  thrown in /oc-includes/osclass/model/Admin.php on line 70



Will I be able to get the website back to normal? Please help fix it

my osclass
 Osclass information
Osclass version: 8.0.2
Multisite: No

Last update check: 2022-11-19 20:48:02

Using dev cron: Yes

Current front theme: Sigma Osclass Theme (sigma)

Current oc-admin theme: Omega Admin Theme (omega)

PHP error log: Enabled

PHP errors output to file: Enabled

Database debug mode: Disabled

Cache: Disabled

 Server information
Server information:

Server software version: ()

PHP version: 7.4.30

Memory limit: 256M

Max execution time: 5000s

Upload max file size: 2048M

Max input vars: 5000

Allow URL Fopen: Enabled

 Database information
MySQL version: 5.5.5-10.6.9-MariaDB

MySQL server: localhost

MySQL name:

MySQL user:

Tables prefix: oc_
« Last Edit: November 20, 2022, 05:38:06 AM by orangentle »

*

orangentle

  • **
  • 5 posts
Re: errors after posting ads
« Reply #1 on: November 20, 2022, 01:11:18 PM »
Please close the topic
i solved this problem

I went to edit config.php

from

// PHP memory limit (ideally should be more than 128MB+)
// define('OSC_MEMORY_LIMIT', '64');
to


// PHP memory limit (ideally should be more than 128MB+)
define('OSC_MEMORY_LIMIT', '256M');


Now the website is back to work normally.  ;D

*

MB Themes

Re: errors after posting ads
« Reply #2 on: December 01, 2022, 10:53:39 PM »
Thanks for feedback ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

orangentle

  • **
  • 5 posts
Re: errors after posting ads
« Reply #3 on: January 01, 2023, 04:28:16 AM »
The same problem happened again yesterday (31/12/2022). I haven't been able to fix it until now. :(

*

orangentle

  • **
  • 5 posts
Re: errors after posting ads
« Reply #4 on: January 01, 2023, 05:59:29 AM »
Today fix by
1. Go to Direct Admin to backup database
2. Create a new database, new user, new password.
3. Restore the old database to the new Database but it doesn't work.( error don't pass )
4. Open phpmyAdmin and restore the old database to the new Database, Pass  :)
5. Go to the config.php file to point to the new Database.

Try posting on the web page. It's back to normal again. ;D

*

MB Themes

Re: errors after posting ads
« Reply #5 on: January 02, 2023, 01:16:36 PM »
@orangentle
Seems like problems with database, maybe you must restart it when it went down?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

orangentle

  • **
  • 5 posts
Re: errors after posting ads
« Reply #6 on: January 06, 2023, 04:31:28 AM »
@orangentle
Seems like problems with database, maybe you must restart it when it went down?

Previously, I've tried restarting, but it didn't work.

*

MB Themes

Re: errors after posting ads
« Reply #7 on: January 09, 2023, 03:36:55 PM »
Well it's definitely problem of your hosting/server/db as database goes bye bye and does not come back ever.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots