vuderok Posted July 2, 2016 Share Posted July 2, 2016 Hello, when loading the second image for the product shows an error Unexpected token <in JSON at position 0. But the first image should be loaded is always excellent, the only problem is when you load a second image. What could be the problem. Errors in the log clean and the browser does not display anything from the mistakes. Thank you.... Link to comment Share on other sites More sharing options...
NemoPS Posted July 2, 2016 Share Posted July 2, 2016 Can you open the debug console (f12) and inspect the red entry, right after uploading? Open the console, then upload, then inspect the red entry's response Link to comment Share on other sites More sharing options...
vuderok Posted July 2, 2016 Author Share Posted July 2, 2016 Hello there are no errors. Link to comment Share on other sites More sharing options...
vuderok Posted July 2, 2016 Author Share Posted July 2, 2016 Can you open the debug console (f12) and inspect the red entry, right after uploading? Open the console, then upload, then inspect the red entry's response Hello there are no errors. Link to comment Share on other sites More sharing options...
codetheweb Posted July 3, 2016 Share Posted July 3, 2016 Its a js error, Download firebug and past us the result (on red lines) from the console. king regards Link to comment Share on other sites More sharing options...
vuderok Posted July 3, 2016 Author Share Posted July 3, 2016 Thanks for the answer, if it is necessary to write something else, I'll be here ... Link to comment Share on other sites More sharing options...
vuderok Posted July 3, 2016 Author Share Posted July 3, 2016 Script /*! * enquire.js v2.1.0 - Awesome Media Queries in JavaScript * Copyright © 2013 Nick Williams - http://wicky.nillia.ms/enquire.js * License: MIT (http://www.opensource.org/licenses/mit-license.php) */(function(e,t,n){var r=t.matchMedia;typeof module!="undefined"&&module.exports?module.exports=n®:typeof define=="function"&&define.amd?define(function(){return t[e]=n®}):t[e]=n®})("enquire",this,function(e){"use strict";function t(e,t){var n=0,r=e.length,i;for(n;n<r;n++){i=t(e[n],n);if(i===!1)break[spam-filter]function n(e){return Object.prototype.toString.apply(e)==="[object Array]"}function r(e){return typeof e=="function"}function i(e){this.options=e;!e.deferSetup&&this.setup()}function s(t,n){this.query=t;this.isUnconditional=n;this.handlers=[];this.mql=e(t);var r=this;this.listener=function(e){r.mql=e;r.assess()};this.mql.addListener(this.listener)}function o(){if(!e)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={};this.browserIsIncapable=!e("only all").matches}i.prototype={setup:function(){this.options.setup&&this.options.setup();this.initialised=!0},on:function(){!this.initialised&&this.setup();this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e[spam-filter];s.prototype={addHandler:function(e){var t=new i(e);this.handlers.push(t);this.matches()&&t.on()},removeHandler:function(e){var n=this.handlers;t(n,function(t,r){if(t.equals(e)){t.destroy();return!n.splice(r,1)[spam-filter])},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(e){e.destroy()});this.mql.removeListener(this.listener);this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";t(this.handlers,function(t){t[e]()})[spam-filter];o.prototype={register:function(e,i,o){var u=this.queries,a=o&&this.browserIsIncapable;u[e]||(u[e]=new s(e,a));r(i)&&(i={match:i});n(i)||(i=);t(i,function(t){u[e].addHandler(t)});return this},unregister:function(e,t){var n=this.queries[e];if(n)if(t)n.removeHandler(t);else{n.clear();delete this.queries[e]}return this[spam-filter];return new o}); Link to comment Share on other sites More sharing options...
codetheweb Posted July 3, 2016 Share Posted July 3, 2016 Hi, We need the console tabs show to see if you got js errors, caused you got one for sure. Else give us the link where the error appened Link to comment Share on other sites More sharing options...
vuderok Posted July 3, 2016 Author Share Posted July 3, 2016 Solution sql request: ALTER TABLE `ps_image` CHANGE `cover` `cover` TINYINT(1) UNSIGNED NULL DEFAULT '0'; ALTER TABLE `ps_image_shop` CHANGE `cover` `cover` TINYINT(1) UNSIGNED NULL DEFAULT '0'; Thanks Lefty_sarl 1 Link to comment Share on other sites More sharing options...
codetheweb Posted July 3, 2016 Share Posted July 3, 2016 No problems guy Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now