Welcome Guest, Not a member yet? Register   Sign In
BadMethodCallException CodeIgniter\Format\JSONFormatter is not a valid Formatter.
#1

(This post was last modified: 07-12-2020, 08:10 AM by rhals.)

Hello!

Thanks for a great product.  I am a new developer?  Anyway, has anyone seen this before?  It works fine on my Xampp server but not on my production server.  Production Server apache 2.4 and php 7.4.

BadMethodCallException CodeIgniter\Format\JSONFormatter is not a valid Formatter.  Please see attached.

Thanks in advance for your help!!

Attached Files Thumbnail(s)
   
Reply
#2

(This post was last modified: 07-12-2020, 08:10 AM by rhals.)

After going back and verifying that json was installed correctly on my server. I went to php 7.3.19 json 1.7 which is the same as my development server and still had the same problem. However, when I used echo json_encode($response); everything worked correctly on the production server.

return $this->response->setJSON($response); still triggers an error. Does anyone know why?

Please let me know if I need to provide any additional information.

Thanks in advance for your help!

Rich Halsey
Reply




Theme © iAndrew 2016 - Forum software by © MyBB