Kiroge Posted October 19, 2017 Share Posted October 19, 2017 H Hi, I am getting the error when I try to send email to client using email tempalate. This is just upgrade to version 7.3.0. How to solve this issue? Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again. TypeError: Argument 1 passed to WHMCS\Model\AbstractModel::fromArrayToCharacterSeparatedValue() must be of the type array, string given, called in /home/xxxxxx/public_html/xxxxxx/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php on line 0 and defined in /home/xxxxxx/public_html/xxxxxx/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php:0 Stack trace: #0 /home/xxxxxx/public_html/xxxxxx/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php(0): WHMCS\Model\AbstractModel->fromArrayToCharacterSeparatedValue('') #1 /home/xxxxxx/public_html/xxxxxx/vendor/illuminate/database/Eloquent/Model.php(3409): WHMCS\Model\AbstractModel->setAttribute('copyto', '') #2 /home/xxxxxx/public_html/xxxxxx/kami11/sendmessage.php(0): Illuminate\Database\Eloquent\Model->__set('copyTo', '') #3 {main} Link to comment Share on other sites More sharing options...
brian! Posted October 19, 2017 Share Posted October 19, 2017 i'd be tempted to reupload the 'vendor' folder again from the v7.3.0 full release zip and see if that solves the issue. Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted October 20, 2017 Share Posted October 20, 2017 Hi @Kiroge As suggested by @brian! re-uploading the Vendor File should help, I'd also recommend enabling errors under Setup > General Settings > Other > DIsplay Errors and then try reloading the page Link to comment Share on other sites More sharing options...
Kiroge Posted October 20, 2017 Author Share Posted October 20, 2017 Hi guys, I re-uploaded vendor folder and still get same problem and enabled errors log. Here below is the errors when I refresh the page, ypeError: Argument 1 passed to WHMCS\Model\AbstractModel::fromArrayToCharacterSeparatedValue() must be of the type array, string given, called in /home/xxxxx/public_html/xxxxx/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php on line 0 and defined in /home/xxxxx/public_html/xxxxx/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php:0Stack trace:#0 /home/xxxxx/public_html/xxxxx/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php(0): WHMCS\Model\AbstractModel->fromArrayToCharacterSeparatedValue('')#1 /home/xxxxx/public_html/xxxxx/vendor/illuminate/database/Eloquent/Model.php(3409): WHMCS\Model\AbstractModel->setAttribute('copyto', '')#2 /home/xxxxx/public_html/xxxxx/admin/sendmessage.php(0): Illuminate\Database\Eloquent\Model->__set('copyTo', '')#3 {main} Link to comment Share on other sites More sharing options...
Kiroge Posted October 20, 2017 Author Share Posted October 20, 2017 4 hours ago, WHMCS ChrisD said: Hi @Kiroge As suggested by @brian! re-uploading the Vendor File should help, I'd also recommend enabling errors under Setup > General Settings > Other > DIsplay Errors and then try reloading the page I did re-upload vendor folder but I still have same problem see the result of the error log on my new post. Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted October 20, 2017 Share Posted October 20, 2017 Hey Kiroge, Did you enable display errors before re-loading? Link to comment Share on other sites More sharing options...
Kiroge Posted October 20, 2017 Author Share Posted October 20, 2017 3 minutes ago, WHMCS ChrisD said: Hey Kiroge, Did you enable display errors before re-loading? Hi Chris, Yes, these errors below displayed after enabling > General settings > Other>Display Errors and Log Errors. Otherwise would only show the 'Ooops' message. TypeError: Argument 1 passed to WHMCS\Model\AbstractModel::fromArrayToCharacterSeparatedValue() must be of the type array, string given, called in /home/xxxxx/public_html/xxxxx/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php on line 0 and defined in /home/xxxxx/public_html/xxxxx/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php:0Stack trace:#0 /home/xxxxx/public_html/xxxxx/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php(0): WHMCS\Model\AbstractModel->fromArrayToCharacterSeparatedValue('')#1 /home/xxxxx/public_html/xxxxx/vendor/illuminate/database/Eloquent/Model.php(3409): WHMCS\Model\AbstractModel->setAttribute('copyto', '')#2 /home/xxxxx/public_html/xxxxx/admin/sendmessage.php(0): Illuminate\Database\Eloquent\Model->__set('copyTo', '')#3 {main} Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted October 20, 2017 WHMCS Support Manager Share Posted October 20, 2017 Hi, Does this occur with every email template, or just one specific email template? Please review Utilities > Logs > Activity log at the time of sending for any syntax errors. It might also be helpful if you posted the email template in question for us to review. Link to comment Share on other sites More sharing options...
Kiroge Posted October 20, 2017 Author Share Posted October 20, 2017 (edited) 48 minutes ago, WHMCS John said: Hi, Does this occur with every email template, or just one specific email template? Please review Utilities > Logs > Activity log at the time of sending for any syntax errors. It might also be helpful if you posted the email template in question for us to review. This occur to all email templates and all templates were working fine prior to upgrading version 7.3.0. Here below is activity logs 20/10/2017 12:30 Error: TypeError: Argument 1 passed to WHMCS\Model\AbstractModel::fromArrayToCharacterSeparatedValue() must be of the type array, string given, called in /home/xxxxx/public_html/clients/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php on line 0 and defined in /home/decentcl/public_html/clients/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php:0 Stack trace: #0 /home/xxxxx/public_html/clients/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php(0): WHMCS\Model\AbstractModel->fromArrayToCharacterSeparatedValue('') #1 /home/decentcl/public_html/clients/vendor/illuminate/database/Eloquent/Model.php(3409): WHMCS\Model\AbstractModel->setAttribute('copyto', '') #2 /home/xxxxx/public_html/clients/kami11/sendmessage.php(0): Illuminate\Database\Eloquent\Model->__set('copyTo', '') #3 {main} Edited October 20, 2017 by Kiroge Link to comment Share on other sites More sharing options...
Kiroge Posted October 21, 2017 Author Share Posted October 21, 2017 Any help guys? Link to comment Share on other sites More sharing options...
Kiroge Posted October 21, 2017 Author Share Posted October 21, 2017 Sorted Link to comment Share on other sites More sharing options...
brian! Posted October 21, 2017 Share Posted October 21, 2017 31 minutes ago, Kiroge said: Sorted it might be helpful to others if you mention how it was resolved. Link to comment Share on other sites More sharing options...
Kiroge Posted October 21, 2017 Author Share Posted October 21, 2017 2 minutes ago, brian! said: it might be helpful to others if you mention how it was resolved. I just re-uploaded all files instead of only Vendor folder and that resolved the issue. 1 Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted February 7, 2018 WHMCS Support Manager Share Posted February 7, 2018 Hi, I just experienced this same error caused by out-dated /admin files. So for any users who may encounter this error in future; uploading a fresh copy of the /vendor and /admin directories is a good starting point. Link to comment Share on other sites More sharing options...
Recommended Posts