All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Cannot find variable type low_textarea

Xujie Zheng 1 Feb 2017 20:18 problem, complete

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

  1. 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.

  2. Xujie Zheng 1 Feb 2017 20:43

    The error is still there after I reupload the folder

  3. Xujie Zheng 1 Feb 2017 20:44

    Does this have anything to do with the database?Do you need access to check it out?

    Xujie Zheng 1 Feb 2017 20:46

    This is the php Error log before and after I re-upload the folder

    [01-Feb-2017 15:41:39 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
    [01-Feb-2017 14:42:24 America/Chicago] PHP Fatal error: Class 'Low_variables_variable_model' not found in /mnt/stor9-wc1-dfw1/659720/dev.c2c.grassrootsenterprise.net/web/content/manage/ee/legacy/core/Loader.php on line 339
    [01-Feb-2017 15:42:28 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

    Low 1 Feb 2017 20:46

    Looks like the settings in the DB might be corrupted somehow. I should be able to determine that by looking in the CP (and its MySQL manager).

    Low 1 Feb 2017 20:48

    If I'm not mistaken, this is the first error you get:

    unserialize(): Error at offset 287 of 417 bytes


    ...which points to an error reading the extension settings. So try and re-save the settings. If that doesn't work, I'll need to take a look myself.

  4. 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.

    Xujie Zheng 1 Feb 2017 20:53

    it is sent, let me know if you need database access

    Xujie Zheng 1 Feb 2017 20:53

    or ftp

  5. 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.