Jump to content
souzadavi

Object of class stdClass could not be converted to string in .... ccfunctons.php line 0

Recommended Posts

I created a payment module for WHMCS,,,,  I have a user with trouble in WHMCS 7.1... the error is on imagem, there is any ideia what is it could be???

thanks

chat.thumb.jpg.80ec6d223a50fff7a16f24f5290f3073.jpg

 

 

 

Share this post


Link to post
Share on other sites
15 hours ago, souzadavi said:

I created a payment module for WHMCS,,,,  I have a user with trouble in WHMCS 7.1... the error is on imagem, there is any idea what is it could be???

not without seeing the code causing the error... stdClass could occur with a capsule database query (or existing variable) and you then trying to access the result in the wrong way.

  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks @brian! can I send the code on PM? Could be something in function json_decode($resposta); ???

Edited by souzadavi

Share this post


Link to post
Share on other sites
10 minutes ago, souzadavi said:

Thanks @brian! can I send the code on PM? Could be something in function json_decode($resposta); ???

sure - but I probably won't get a chance to look at it until tomorrow.

  • Thanks 1

Share this post


Link to post
Share on other sites

To fixed I used second parameter equal true. It fixed the error...

jsondecode( $original, TRUE ); 

 

thanks brian!

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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