Cannot find variable type low_textarea
Hi,
We have encounter an issue where low variable cannot find the type. Our entire website is broken right now.
This is the php error log output:
[01-Feb-2017 15:07:13 America/New_York] PHP Fatal error: Class name must be a valid object or a string in /mnt/stor9-wc1-dfw1/659720/dev.c2c.grassrootsenterprise.net/web/content/manage/user/addons/low_variables/libraries/Low_variables_types.php on line 336
And the following is on the web page
Undefined index: low_textarea
user/addons/low_variables/libraries/Low_variables_types.php, line 331 hide details
Severity: E_NOTICE
Fatal error: Class name must be a valid object or a string in /mnt/stor9-wc1-dfw1/659720/dev.c2c.grassrootsenterprise.net/web/content/manage/user/addons/low_variables/libraries/Low_variables_types.php on line 336
Note: This conversation was created from a reply on: Unknown column 'entry_id'.
Replies
Low 1 Feb 2017 20:32
This should never occur, and I'm not sure how it could.
I'd download a fresh copy of Low Variables, delete the files of your current installation, and re-upload all the files, making sure /low_variables/types/low_textarea/vt.low_textarea.php is there.
Also re-save your Low Variables settings, making sure the Low Textarea type is indeed enabled. The checkbox should be checked and disabled, so you can't uncheck it.
Xujie Zheng 1 Feb 2017 20:43
The error is still there after I reupload the folder
Xujie Zheng 1 Feb 2017 20:44
Does this have anything to do with the database?Do you need access to check it out?
Low 1 Feb 2017 20:44
I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.
Low 1 Feb 2017 21:15
This issue was caused by a manual find & replace directly in the database, thus changing the settings in a serialized array, which caused it the settings to be corrupted.
Therefore LV couldn't read its settings and EE crapped out.
Please, never manually change a serialized string in the DB; changing a single digit can cause errors like these.