Jump to content

Tab Associations Error


ujwal

Recommended Posts

Dear All,

 

I am getting following error message while add/edit products.

 

Please guide me how to resolve.

error is:

 

"Tab : Associations (500)
A server error occurred while loading the tabs: some tabs could not be loaded.
Please try again by refreshing the page.
If you are still encountering this problem, please check your server logs or contact your hosting provider for assistance."

post-745391-0-91560200-1433137165_thumb.jpg

Link to comment
Share on other sites

go to your back office

turn on browser console - press ctrl+shift+j (in chrome)
go to product page and wait to this error

 

in console you will see red error,

click on it and open "response" tab

paste contents of "response" tab section here

Link to comment
Share on other sites

Hi Vekia,

 

Thank you for your prompt response. 

 

Following is the code that I have found in the console section:

 

 GET http://imedicia.co/new/admin248ie6zhw/index.php?controller=AdminProducts&to…ction=Associations&updateproduct&ajax=1&rand=1433138223573&_=1433138217964 500 (Internal Server Error)   - jquery-1.11.0.min.js:4 "

 

 

  1. n.ajaxTransport.send @ jquery-1.11.0.min.js:4
  2. n.extend.ajax @ jquery-1.11.0.min.js:4
  3. ProductTabsManager.display @ products.js:121
  4. ProductTabsManager.displayBulk @ products.js:179
  5. (anonymous function) @ products.js:215
  6. n.Callbacks.j @ jquery-1.11.0.min.js:2
  7. n.Callbacks.k.fireWith @ jquery-1.11.0.min.js:2
  8. x @ jquery-1.11.0.min.js:4
  9. n.ajaxTransport.send.b @ jquery-1.11.0.min.js:4
Edited by ujwal (see edit history)
Link to comment
Share on other sites

@vekia

 

Hi Vekia,

 

Please find below the content of response tab:

 

Uncaught ReferenceError: response is not defined
    at <anonymous>:2:1
    at Object.InjectedScript._evaluateOn (<anonymous>:895:140)
    at Object.InjectedScript._evaluateAndWrap (<anonymous>:828:34)
    at Object.InjectedScript.evaluate (<anonymous>:694:21)
  1. (anonymous function) @ VM549:2
  2. InjectedScript._evaluateOn @ VM516:895
  3. InjectedScript._evaluateAndWrap @ VM516:828
  4. InjectedScript.evaluate @ VM516:694
Edited by ujwal (see edit history)
Link to comment
Share on other sites

Hey,

 

How are you developing shop? Is it on dedicated server or some local VM or any other way?

 

Javascript does not forge headers, 500 response error is coming from the server.

First thing you have to check is the server logs there should be error message about the occasion. 

Link to comment
Share on other sites

Hey,

 

How are you developing shop? Is it on dedicated server or some local VM or any other way?

 

Javascript does not forge headers, 500 response error is coming from the server.

First thing you have to check is the server logs there should be error message about the occasion. 

 

Hi Blackarma,

 

Thank you for your message. We are hosting the website on 1and1 

 

any idea is this error regarding java script or server error.

 

following error I have found on server log:

 [03/Jun/2015:01:32:01 -0400] "GET /new/js/jquery/plugins/jquery.validate.js HTTP/1.1" 200 21068 imedicia.co "http://imedicia.co/new/adminxxxx/index.php?controller=AdminLogin&token=b4fa1fcbbfe8d073f90d33cda1327d8e" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" "-"

 

[03/Jun/2015:01:32:01 -0400] "GET /new/js/jquery/plugins/jquery.validate.js HTTP/1.1" 200 21068 imedicia.co "http://imedicia.co/new/adminxxxx/index.php?controller=AdminLogin&token=b4fa1fcbbfe8d073f90d33cda1327d8e" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" "-"
94.200.89.34 - - [03/Jun/2015:01:32:01 -0400] "GET /new/js/jquery/jquery-migrate-1.2.1.min.js HTTP/1.1" 200 7199 imedicia.co "http://imedicia.co/new/adminxxxx/index.php?controller=AdminLogin&token=b4fa1fcbbfe8d073f90d33cda1327d8e" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" "-"
94.200.89.34 - - [03/Jun/2015:01:32:01 -0400] "GET /new/js/vendor/spin.js HTTP/1.1" 200 10196 imedicia.co "http://imedicia.co/new/adminxxxx/index.php?controller=AdminLogin&token=b4fa1fcbbfe8d073f90d33cda1327d8e" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" "-"
94.200.89.34 - - [03/Jun/2015:01:32:01 -0400] "GET /new/js/vendor/ladda.js HTTP/1.1" 200 6490 imedicia.co "http://imedicia.co/new/admin248ie6zhw/index.php?controller=AdminLogin&token=b4fa1fcbbfe8d073f90d33cda1327d8e" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" "-"
94.200.89.34 - - [03/Jun/2015:01:32:01 -0400] "GET /new/js/jquery/jquery-1.11.0.min.js HTTP/1.1" 200 96381 imedicia.co "http://imedicia.co/new/admin248ie6zhw/index.php?controller=AdminLogin&token=b4fa1fcbbfe8d073f90d33cda1327d8e" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" "-"
94.200.89.34 - - 
Edited by ujwal (see edit history)
Link to comment
Share on other sites

 

Hi Blackarma,

 

Thank you for your message. We are hosting the website on 1and1 

 

any idea is this error regarding java script or server error.

 

following error I have found on server log:

 [03/Jun/2015:01:32:01 -0400] "GET /new/js/jquery/plugins/jquery.validate.js HTTP/1.1" 200 21068 imedicia.co "http://imedicia.co/new/adminxxxx/index.php?controller=AdminLogin&token=b4fa1fcbbfe8d073f90d33cda1327d8e" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" "-"

 

[03/Jun/2015:01:32:01 -0400] "GET /new/js/jquery/plugins/jquery.validate.js HTTP/1.1" 200 21068 imedicia.co "http://imedicia.co/new/adminxxxx/index.php?controller=AdminLogin&token=b4fa1fcbbfe8d073f90d33cda1327d8e" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" "-"
94.200.89.34 - - [03/Jun/2015:01:32:01 -0400] "GET /new/js/jquery/jquery-migrate-1.2.1.min.js HTTP/1.1" 200 7199 imedicia.co "http://imedicia.co/new/adminxxxx/index.php?controller=AdminLogin&token=b4fa1fcbbfe8d073f90d33cda1327d8e" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" "-"
94.200.89.34 - - [03/Jun/2015:01:32:01 -0400] "GET /new/js/vendor/spin.js HTTP/1.1" 200 10196 imedicia.co "http://imedicia.co/new/adminxxxx/index.php?controller=AdminLogin&token=b4fa1fcbbfe8d073f90d33cda1327d8e" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" "-"
94.200.89.34 - - [03/Jun/2015:01:32:01 -0400] "GET /new/js/vendor/ladda.js HTTP/1.1" 200 6490 imedicia.co "http://imedicia.co/new/admin248ie6zhw/index.php?controller=AdminLogin&token=b4fa1fcbbfe8d073f90d33cda1327d8e" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" "-"
94.200.89.34 - - [03/Jun/2015:01:32:01 -0400] "GET /new/js/jquery/jquery-1.11.0.min.js HTTP/1.1" 200 96381 imedicia.co "http://imedicia.co/new/admin248ie6zhw/index.php?controller=AdminLogin&token=b4fa1fcbbfe8d073f90d33cda1327d8e" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" "-"
94.200.89.34 - - 

 

 

Hey,

 

This is access.log, there must be another witch is error.log

I'm not familar with 1and1 solution, since i host on dedicated.

 

But it seems that what you can do is:

1) Create php.ini file in your prestashop folder or one that is below it (example: shop location is /var/www/myshop/prestashop, place /var/www/myshop/php.ini, if you have no extra folder, place php.ini in prestashop root folder).

2) Fill that php.ini file with these settings (replace <path_to_folder_that_is_accesible_by_you_or_your_ftp> with actual absalute path to php.ini file:

error_reporting = E_ALL | E_STRICT
log_errors = On 
display_errors = Off 
error_log = <path_to_folder_that_is_accesible_by_you_or_your_ftp>/errors.log

3) Try to cause error, then look for errors.log in folder you specified in php.ini

4) Report back with errors generated there after they are displayed in your browser

 

P.S: Again i have no idea if you do it like this in 1and1, but seems by their docs that it's that way.

Link to comment
Share on other sites

Hey,

 

This is access.log, there must be another witch is error.log

I'm not familar with 1and1 solution, since i host on dedicated.

 

But it seems that what you can do is:

1) Create php.ini file in your prestashop folder or one that is below it (example: shop location is /var/www/myshop/prestashop, place /var/www/myshop/php.ini, if you have no extra folder, place php.ini in prestashop root folder).

2) Fill that php.ini file with these settings (replace <path_to_folder_that_is_accesible_by_you_or_your_ftp> with actual absalute path to php.ini file:

error_reporting = E_ALL | E_STRICT
log_errors = On 
display_errors = Off 
error_log = <path_to_folder_that_is_accesible_by_you_or_your_ftp>/errors.log

3) Try to cause error, then look for errors.log in folder you specified in php.ini

4) Report back with errors generated there after they are displayed in your browser

 

P.S: Again i have no idea if you do it like this in 1and1, but seems by their docs that it's that way.

Hy...

 

Thanks 

 

Its Work really. Thank You very much.

Link to comment
Share on other sites

  • 4 weeks later...

I have exactly the same problem. In error log is: 

[26-Jun-2015 11:25:20 Europe/Prague] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 48787191 bytes) in #######www/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 217
I guess this is caused by too many catgories (around 11000  - car selector database) Is there some way how to solve it without increasing server memory?  
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...