*

orangentle

  • *
  • 2 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

  • *
  • 2 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