Jump to content

multishop tree not working


Recommended Posts

I wonder if someone else had the same issue or can replicate it.

 

I saw a bug with the same issue and was supposed to be fixed, but at least I'm having trouble with this.

 

So the issue is that the multistore tree never appears on the multistore page. I have multistore enabled.

 

Here's my environment:

 

 

Server information

 

Prestashop version: 1.5.0.15

Server information: Linux #1 SMP Wed Mar 14 15:22:14 EDT 2012 i686

Server software version: Apache

PHP version: 5.2.17

Database information

 

MySQL version: 5.0.95-community

MySQL engine: InnoDB

Tables prefix: ps_

Store information

 

Shop URL: http://presta15.avuliasaatu.com/

Current theme in use: default

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.1 (KHTML, like Gecko) Chrome/21.0.1180.83 Safari/537.1

AdminInformation.gif Check your configuration

Required parameters: OK

Optional parameters: Please fix the following error(s)

  • magicquotes

 

So only thing is the magicquotes, which shouldn't effect like this especially since it's optional.

 

It's a fresh install with only enabled the multistore feature.

Link to comment
Share on other sites

Version is 1.5.0.15 as it shows on the first post. Released on August 06, 2012.

 

The multishop tree never showed, so steps are just to install a fresh copy and enable multistore.

 

I'll test with the latest SVN code, haven't done that yet.

 

No I didn't post a bug yet, since there was one a while back and it was resolved as fixed so I wanted to know first does this bug happen with others or is it just me for some reason.

 

But I'll test latest svn now and let you know if the issue is still there.

Link to comment
Share on other sites

Ok, it's now tested with revision 17092. Fresh install, nothing else done expect enabling the multistore. No tree showing at this point.

 

Also I add a shop group, shop. Still no tree. Without the tree I can't really modify existing stores.

 

Next issue I found when adding url to a shop, I get error 406 "Not acceptable" when pressing "save" from adding url form.. This might be a result of server settings though. Except same server runs 1.4 versions without any hiccups.

Link to comment
Share on other sites

I had similar issues, when using Internet Explorer.

 

This is a copy/paste of the docs I'm writing for a client:

 

Webshop Administration users who use Internet Explorer as their web browser should check their temporary internet file settings and change the "Check for newer version of stored pages" setting to "Every time I visit the web page" or "Every visit to the page" if another setting is selected. The correct setting will ensure that the Webshop BackOffice displays the correct content after changes are applied to the webshop.

 

Note: We recommend to use the browser ‘Google Chrome’ for an optimised experience, though everything will also work in other browser. Using Internet Explorer 6 is strongly discouraged since it uses outdated technology.

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

Yes, I just noticed final release has come out. I now tested with two separate servers with the final version. Apparently there's something wrong with the server settings since the tree works fine on another server, but still not on the one I first tested it on.

 

So don't think it's a bug. :)

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

I have the same problem:

AdminInformation.gif Information about your configuration

Server information

 

Server information: Linux #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64

Server software version: Apache

PHP version: 5.3.18

Memory limit: 128M

Max execution time: 30

Database information

 

MySQL version: 5.1.65-cll

MySQL engine: InnoDB

Tables prefix: *****

Store information

 

Prestashop version: 1.5.2.0

Shop URL: http://next.rahasan.com/

Current theme in use: default

Mail configuration

 

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

Your information

 

Your web browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0

AdminInformation.gif Check your configuration

Required parameters: OK

Optional parameters: Please fix the following error(s)

  • magicquotes

AdminInformation.gif List of changed files

Changed/missing files have been detected

Updated files (20)

  • config/config.inc.php
  • config/defines.inc.php
  • modules/blockcart/blockcart.css
  • modules/blockcms/blockcms.tpl
  • modules/blockcms/img/arrow_right_2.png
  • modules/blockcontact/blockcontact.css
  • modules/blockcurrencies/blockcurrencies.css
  • modules/blocknewsletter/blocknewsletter.css
  • modules/blocknewsletter/img/bg_bt_newsletter_ok.png
  • modules/blockpermanentlinks/blockpermanentlinks.css
  • modules/blockreinsurance/blockreinsurance.tpl
  • modules/blockreinsurance/style.css
  • modules/blocksearch/blocksearch.css
  • modules/blocktopmenu/css/superfish-modified.css
  • modules/blocktopmenu/img/arrows-ffffff.png
  • modules/blocktopmenu/img/bg_blocktopmenu.png
  • modules/blocktopmenu/img/bg_blocktopmenu_li_hover.png
  • modules/blocktopmenu/img/bg_li_blocktopmenu.png
  • modules/blockuserinfo/blockuserinfo.css
  • modules/homeslider/bx_styles.css

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

  • 2 weeks later...
  • 2 weeks later...
  • 2 weeks later...
  • 1 month later...

Hi,

 

I have the same problem but i think it's JS problem. Multishop tree is not wonrking but there is a lot of lists of values an buttons that are not working too.

 

ReferenceError: $ is not defined

 

Probably prestashop is not able to load some .js or something is crashing whit it.

 

I've tried to copy fresh js and admin directories with no luck... :(

 

I still looking for solutions.

Link to comment
Share on other sites

Hi,

 

My solution (not good but it works), modify header.tlp from source "admin/themes/default/template". I've just added .js files manually.

 

<script type="text/javascript" src="/shop_directory/admin/../admin/../js/jquery/plugins/jquery.cookie-plugin.js"></script>

<script type="text/javascript" src="/shop_directory/admin/../admin/../js/jquery/plugins/jstree/jquery.jstree.js"></script>

 

Only way i've find.

Link to comment
Share on other sites

  • 4 weeks later...

My solution

rename 'cookie-plugin' to 'cookie_plugin' in the web site (in adminsshopurlcontrolller , adminShopGroupControler AND adminShopController)

and rename jquery.cookie-plugin.js to jquery.cookie_plugin.js

 

is it working !

et voila

  • Like 1
Link to comment
Share on other sites

Thank you mopi. You make my day. It seems pretty tricky but definitely worth it. I just wonder on the next upgrade; Should I rollback the modifications before upgrade to newer versions? May be stupide question cause there is high pourcent of chance prestashop wont have fix it :rolleyes:

Link to comment
Share on other sites

  • 8 months later...

Thanks mopi!  We were also seeing this problem and made the changes that you suggested.  I just wanted to add that in looking at the Apache error logs for the web server, I was seeing a Modsecurity error that was related to this issue.  We corrected it by changing jquery.cookie_plugin.js in the following three files:

  • adminsshopurlcontroller.php
  • adminShop GrouopControler.php
  • adminShopController.php

When we refreshed the site afterwards we could see the Multisite tree working properly.  

Link to comment
Share on other sites

Thanks mopi!  We were also seeing this problem and made the changes that you suggested.  I just wanted to add that in looking at the Apache error logs for the web server, I was seeing a Modsecurity error that was related to this issue.  We corrected it by changing jquery.cookie_plugin.js in the following three files:

  • adminsshopurlcontroller.php
  • adminShop GrouopControler.php
  • adminShopController.php

When we refreshed the site afterwards we could see the Multisite tree working properly.  

Hi would you please point me where I can locate these files thank you   By the way, I could find these three files inside of a controllers/admin folder but the three files do not contain the wording "jquery.cookie-plugin.js" ? 

  • adminsshopurlcontroller.php
  • adminShop GrouopControler.php
  • adminShopController.php
Link to comment
Share on other sites

Found a pretty detailed solution here:

http://forge.prestashop.com/secure/Dashboard.jspa

 

It worked perfect for me! I'm with V. 1.5.6.0

 

ZhenIT Sofware added a comment - 06/Jun/13 12:18 AM

Got the problem. It is not a prestashop issue. There is a rule in apache's mod_security module (950004) that prevents loading url with the "cookie" string thus the file js/jquery/plugins/jquery.cookie-plugin.js is not loaded and the js that generates the tree fails.

 

Smart solution: disable 950004 rule in mod_security.

 

If you're in a shared hosting and don't have access to mod_security configration:
rename js/jquery/plugins/jquery.cookie-plugin.js to js/jquery/plugins/jquery.c00kie-plugin.js

change line:
$this->addJqueryPlugin('cookie-plugin');
to
$this->addJqueryPlugin('c00kie-plugin');

 

in files:

controllers/admin/AdminShopController.php
controllers/admin/AdminShopGroupController.php
controllers/admin/AdminShopUrlController.php

Link to comment
Share on other sites

  • 4 months later...
×
×
  • Create New...