Jump to content

New Server Combinations Tab Inaccessible, Add To Cart Doesnt Work On Items With Combinations


Recommended Posts

Greetings,

 

I have a live site and working on moving it to another server.  Backed up all the files (except the cache which can be manually cleared), moved it over.  Backed up and imported database.  I have access to all information and everything seems to work.  The only error i discovered is when i go to add to cart on some items i get the:

 

Impossible to add the product to the cart.
textStatus: 'parsererror'
errorThrown: 'SyntaxError: Unexpected token a'
responseText:

 

If i go into the product to look at combinations i get a Tab: Combination (500) error.  I am unsure what happaned but tried moving it over twice and happened twice.  

 

PrestaShop Version 1.6.1.1

SQL version 5.6.27

PHP version 5.5.30

 

Anyone have any ideas on this issue?  I have attached a .pdf of the debug.

Products11.pdf

Edited by Briguyyyy (see edit history)
Link to comment
Share on other sites

I suggest running on new server a PrestaShop install, you can download here.

 

then if there is any compatibility issue PS should make you aware of it, where a 'move' does not tell us this information, so you can also do this:.

 

also on existing back office-->advanced parms-->configuration option, there may be report of incompatibility (note: this is good information to post as you  did not state your php version)

Link to comment
Share on other sites

Post this

also on existing back office-->advanced parms-->configuration option, there may be report of incompatibility (note: this is good information to post as you  did not state your php version)

 
 
and for 500 errors, turn them on get the exact error
 
only 17 more questions...
Link to comment
Share on other sites

 CONFIGURATION INFORMATION

This information must be provided when you report an issue on our bug tracker or forum.

 SERVER INFORMATION

Server information Linux #1 SMP Tue Nov 3 19:10:07 UTC 2015 x86_64

Server software version Apache/2.4.16 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 mod_fcgid/2.3.9

PHP version 5.5.30

Memory limit 128M

Max execution time 90

 DATABASE INFORMATION

MySQL version 5.6.27

MySQL server localhost

MySQL name

MySQL user

Tables prefix ps_

MySQL engine InnoDB

 STORE INFORMATION

PrestaShop version 1.6.1.1

Shop URL

Current theme in use default-bootstrap

 MAIL CONFIGURATION

Mail method You are using the PHP mail() function.

 YOUR INFORMATION

Your web browser Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36

 CHECK YOUR CONFIGURATION

Required parameters OK

Optional parameters OK

Edited by Briguyyyy (see edit history)
Link to comment
Share on other sites

After turning on dev and going to frontpage i now have these errors:

[PrestaShopDatabaseException]

Data truncated for column 'total_charges' at row 1

INSERT INTO `ps_usps_cache` (`id_cart`, `id_carrier`, `hash`, `id_currency`, `total_charges`, `is_available`, `date_add`, `date_upd`) VALUES ('437', '78', '52884bcc5e431988d74ec82335009aa5', '1', '', '0', '2015-12-09 18:31:48', '2015-12-09 18:31:48')

 

at line 791 in file classes/db/Db.php

786. if ($webservice_call && $errno) {
787. $dbg = debug_backtrace();
788. WebserviceRequest::getInstance()->setError(500, '

 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
790. if ($sql) {
791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
792. }
793.
794. throw new PrestaShopDatabaseException($this->getMsgError());
795. }
796. }

 

Link to comment
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
×
×
  • Create New...