Jump to content

Unknown column 'shortDescription' in 'field list'


FutureX

Recommended Posts

I'm getting a very similar error that just showed up if I check or uncheck 'Hidden' on a product (asterisks are the actual domain name)

 

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'shortDescription' in 'field list' in /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Connection.php:485
Stack trace:
#0 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Connection.php(485): PDO->prepare()
#1 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Connection.php(664): Illuminate\Database\Connection->Illuminate\Database\{closure}()
#2 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Connection.php(631): Illuminate\Database\Connection->runQueryCallback()
#3 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Connection.php(496): Illuminate\Database\Connection->run()
#4 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Connection.php(429): Illuminate\Database\Connection->affectingStatement()
#5 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Query/Builder.php(2802): Illuminate\Database\Connection->update()
#6 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Eloquent/Builder.php(792): Illuminate\Database\Query\Builder->update()
#7 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Eloquent/Model.php(806): Illuminate\Database\Eloquent\Builder->update()
#8 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Eloquent/Model.php(721): Illuminate\Database\Eloquent\Model->performUpdate()
#9 /var/www/vhosts/****.****.com/httpdocs/****/configproducts.php(0): Illuminate\Database\Eloquent\Model->save()
#10 {main}
Next Illuminate\Database\QueryException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'shortDescription' in 'field list' (SQL: update `tblproducts` set `shortDescription` = *****, `tblproducts`.`updated_at` = 2022-09-07 08:49:43 where `id` = 3) in /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Connection.php:671
Stack trace:
#0 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Connection.php(631): Illuminate\Database\Connection->runQueryCallback()
#1 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Connection.php(496): Illuminate\Database\Connection->run()
#2 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Connection.php(429): Illuminate\Database\Connection->affectingStatement()
#3 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Query/Builder.php(2802): Illuminate\Database\Connection->update()
#4 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Eloquent/Builder.php(792): Illuminate\Database\Query\Builder->update()
#5 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Eloquent/Model.php(806): Illuminate\Database\Eloquent\Builder->update()
#6 /var/www/vhosts/****.****.com/httpdocs/vendor/illuminate/database/Eloquent/Model.php(721): Illuminate\Database\Eloquent\Model->performUpdate()
#7 /var/www/vhosts/****.****.com/httpdocs/****/configproducts.php(0): Illuminate\Database\Eloquent\Model->save()
#8 {main}
 

Link to comment
Share on other sites

Yes I checked and I do have the 'short_description' column in tblproducts.  This error just started happening over the last few days when I installed WHMpress Helper but even when I deactivate that Addon I still get the error.

But it seems like the error is looking for the column  shortDescription instead of short_description

Edited by FutureX
Link to comment
Share on other sites

Yes, seems that way.  It's a great plugin if I can just get these few bugs worked out.

I moved the folder for WHMpress Helper above the httpdocs folder and got the same result.  I checked the /hooks folder and nothing new is there.  It had to have updated/changed something.

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @FutureX,

I've split this into a new thread in order to keep each issue separate.

I'm pleased to hear you were able to work-around the error. Another possible solution for this error is detailed at https://help.whmcs.com/m/v85/l/1601133-troubleshooting-a-column-not-found-1054-unknown-column-shortdescription-in-field-list-error

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated