Undefined property: stdClass::$table_name

Undefined property: stdClass::$table_name

Laraship QuestionsCategory: TechnicalUndefined property: stdClass::$table_name
stephane asked 2 weeks ago
While updating laraship to last larvel 7 version I got an error when running the command

php artisan corals:modules --action=update --type=core --module_name=all --force=true --skip_download=true --ignore_backup_message=true

Error: Undefined property: stdClass::$table_name
After doing a fresh install

php artisan corals:install

I still got the same error when I log in and access the dashboard :
Corals/core/Foundation/Helpers/helpers.php:810 : Undefined property: stdClass::$table_name

Staff replied 2 weeks ago

Hello Stephane
Can you please send us SSH access to [email protected] and our team will check

replied 2 weeks ago

I can’t because this actually happened on my local setup.

replied 2 weeks ago

I faced same error, I fix it by change ‘table_name’ to ‘TABLE_NAME’ in helpers.php file line 804 and 810.

1 Answers

Best Answer

laraship Staff answered 2 weeks ago
Thanks, @asma for helping us fix the issue, its DB compatibility issue for upper case and lower case names.
the fix has been pushed to the foundation plugin 5.0.2

70% OFF

No Minimum, No Exceptions