Elxis CMS Forum

Extensions => Components => Topic started by: mscrivo on August 16, 2015, 05:20:36

Title: IOSR: Hotelier add image to gallery shows: Response is not a valid JSON Response
Post by: mscrivo on August 16, 2015, 05:20:36
When using the hotelier control panel to add images to the gallery for a hotel, we're getting the above message, despite the fact that images are getting uploaded fine.

When I look at the response from the upload page, it looks like this:

<regular page template stuff>
...
<body class="innerpage" id="innerpage">
   {"error":0,"rmsg":"One picture uploaded successfully.","ms":1,"type":"hotel","images":["g5\/112_1241.jpg"],"picids":[2764],"imginfo":["1600 x 1200, 886.1 KB"]}</body>
</html>

Any idea what's wrong?
Title: Re: IOSR: Hotelier add image to gallery shows: Response is not a valid JSON Response
Post by: datahell on August 16, 2015, 11:19:04
If you updated from v1.x you might have forgotten to update a file or maybe your browser has a js file cached. Hit control+F5 in your browser to refresh its cache. If you use gzip compression disable it and see if the problem solved. If this is not the case, change template for a while (set elxis default) and check if it works OK with that template. For anything else I need to see it to tell you what is the problem.
Title: Re: IOSR: Hotelier add image to gallery shows: Response is not a valid JSON Response
Post by: mscrivo on August 16, 2015, 22:04:17
Ok, gzip made no difference, but switching to the default theme worked.  Switching back to Aurora and the error message came back.   I'd appreciate it if you could take a look when you have a minute, let me know what you need.
Title: Re: IOSR: Hotelier add image to gallery shows: Response is not a valid JSON Response
Post by: datahell on August 17, 2015, 11:28:25
Then there is something worng with the inner.php file of template Aurora. You can delete it if you like and use system's default or contact webgift for support.
Title: Re: IOSR: Hotelier add image to gallery shows: Response is not a valid JSON Response
Post by: mscrivo on August 18, 2015, 04:54:27
Thanks, removing inner.php did the trick.  I'll file an issue with Webgift.
Title: Re: IOSR: Hotelier add image to gallery shows: Response is not a valid JSON Response
Post by: webgift on August 18, 2015, 11:57:08
No need to report @mscrivo as i have already checked this thread!
It is not suggested to remove inner.php file as there is some reason to be located there. A new
revision have been published for that purpose. In case that you are interested please simply upload
the updated file to the folder of your installation manually and report me using the contact form
in case that this issue still exist.

On my end several tests have been made without any relative issue.
Thank you!
Title: Re: IOSR: Hotelier add image to gallery shows: Response is not a valid JSON Response
Post by: mscrivo on August 19, 2015, 04:52:39
Thank you, the new inner.php is working fine.
Title: Re: IOSR: Hotelier add image to gallery shows: Response is not a valid JSON Response
Post by: webgift on August 19, 2015, 12:17:58
You are welcome, @mscrivo!