Jump to content
Kiroge

Something went wrong and we couldn't process your reques

Recommended Posts

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}

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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:0
Stack 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}

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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:0
Stack 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}

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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 by Kiroge

Share this post


Link to post
Share on other sites
31 minutes ago, Kiroge said:

Sorted

it might be helpful to others if you mention how it was resolved. :idea:

Share this post


Link to post
Share on other sites
2 minutes ago, brian! said:

it might be helpful to others if you mention how it was resolved. :idea:

I just re-uploaded all files instead of only Vendor folder and that resolved the issue.

  • Like 1

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines