Jump to content

Spyridon

Members
  • Posts

    23
  • Joined

  • Last visited

Profile Information

  • Activity
    Developer

Spyridon's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. I have re-uploaded my data for website in a new format ( a format that actually uses less categories, it was very huge before) and has about 4,000 categories. First I was having errors with max_input_vars being locked to 1000, but I got that handled now. Now I am getting new errors when creating the filters templates... Attempt 1: Since I did not have a limit to max_input_vars, I just attempted to use "Check All" to check every category at once. I hit save, and everything looks okay. But when trying to view products on the front page, no filters show up at all. I checked the error log of my server for details and found this: [Mon May 04 08:37:06.010512 2015] [fcgid:warn] [pid 2436] [client 76.175.201.208:64055] mod_fcgid: stderr: PHP Warning: Invalid argument supplied for foreach() in /home/zamozuan/public_html/modules/blocklayered/blocklayered.php on line 3373, referer: https://zamozuan.com/admin/index.php?controller=AdminModules&token=x&configure=blocklayered&tab_module=front_office_features&module_name=blocklayered&add_new_filters_template=1 I have no idea how to work-around that error, so I came up with another idea... Attempt 2: I figured since every product at once was getting an error, why not just make multiple template files? So I got started on multiple template files. Everything seems to be working fine. But once I get to ~2000 or so, when I actually hit the "save" button on template creation, I get the following error: [PrestaShopException]Root category must be an integer value at line 125 in file classes/helper/HelperTreeCategories.php 120. } 121. 122. public function setRootCategory($value) 123. { 124. if (!Validate::isInt($value)) 125. throw new PrestaShopException('Root category must be an integer value'); 126. 127. $this->_root_category = $value; 128. return $this; 129. } 130. HelperTreeCategoriesCore->setRootCategory - [line 1547 - modules/blocklayered/blocklayered.php] - [1 Arguments] BlockLayered->getContent - [line 828 - controllers/admin/AdminModulesController.php] AdminModulesControllerCore->postProcessCallback - [line 1071 - controllers/admin/AdminModulesController.php] AdminModulesControllerCore->postProcess - [line 171 - classes/controller/Controller.php] ControllerCore->run - [line 374 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] I found that really, really weird. How could it not have a root value all of a sudden? I thought maybe it is related to a specific product that may have been missing some values, but I found that all products seem to work, it's once I get over a certain number of products I get this error. I have it at a point where if I add 5 more products (any products) I get the above error. BUT If I simply delete the template that I added 5 more products, the error goes away, and everything seems to be working properly??? So I have no idea how this could be an error of the product losing its root? It must have a root, but for some reason going over X amount of products makes it produce this error? Very upset and frustrated, it seems like Prestashop is made very poorly. Error after error, without any documentation for these errors, I am beginning to regret choosing this platform... I hope somebody can help...
  2. I'm having this exact problem. My phpinfo says: max_input_vars 1000 It states for php.ini: Configuration File (php.ini) Path /etc/php5/cgi Loaded Configuration File /home/zamozuan/etc/php5/php.ini I edited both those files to 9999, still did not update phpinfo. I tried creating a new php.ini and adding it to publichtml and the admin root directory, both unsuccessful. I tried using .htaccess to edit it in both of those same directories, again unsuccessful. Getting very frustrated. Shouldn't the above file be the one that is actually being loaded? I mean phpinfo states it is the path & configuration files being used. How come they are being overwritten??? And if they are being overwritten, how can I figure out how or what is overwriting it???
  3. Providing some more information: Doing some research it seems the page is not loading because the "categories" list has too many categories and it is causing the server to run out of memory. So I am thinking I can just disable the categories from the template editor and allow myself to edit the other optiions... but I will still need to change the categories manually somehow. Does anyone know (or know how to find out) where the category information is stored for the layered navigation block templates in phpMyAdmin/SQL database? Or any way to edit this with the API if that is even possible? Thanks
  4. I am having a big problem with my Layered Navigation Block. I need to update the filters based around new parts that have been added to my site. When I go in to the module configuration for Layered Navigation Block, it loads fine. Then if I click on my template > Edit, it loads for a few seconds, then white screen. So then I figured I would try to create a new template, and get the following error: [PrestaShop] Fatal error in module file :/home/zz/public_html/controllers/admin/AdminModulesController.php: Allowed memory size of 134217728 bytes exhausted (tried to allocate 3394949 bytes) So that gives me the impression that either there is a memory leak, or there are just too many products or search filters on my site for the system to handle in the way it was created. I need to find a way to edit this template though. If the page is not loading, is there any way I could do this through the API or phpMyAdmin directly? Thanks
  5. I've been working on setting up PayPal advanced for my shop, and when making a purchase everything goes smoothly until submitting payment. For the customer side, after putting in card information it stays at "Please Wait - Transaction being processed". It just stays here. Forever. On the PayPal side, payment is received properly. I discovered the problem. This is an SSL error. Using Chrome and inspecting the elements, the Console has this error: Now if I manually go to the http URL that was blocked, the order is confirmed on the customer side, and everything works perfectly. So it seems the problem is the fact that a http URL is getting returned on a https site, so it is getting blocked. Isn't the PayPal module supposed to detect if the site is SSL enabled??? I've looked everywhere to try to find the place to change this but havent been able to... Any advice please? This is pretty urgent, site was supposed to be open for my client by now...
  6. The catalog section (layered navigation block) on my categories pages on desktop, tablet, etc... is maximized by default. On Mobiles it is minimized by default, and this makes it kind of confusing to navigate my store. I'm wondering how I could make it so it is not minimized by default on mobiles? Thanks
  7. It is the next day and still having this issue! These are the errors on my SSL pages... The page at 'https://mydomain.com/login?back=my-account' was loaded over HTTPS, but is submitting data to an insecure location at 'http://mydomain.com/search': this content should also be submitted over HTTPS. The page at 'https://mydomain.com/login?back=my-account' was loaded over HTTPS, but is submitting data to an insecure location at 'http://mydomain.com/': this content should also be submitted over HTTPS. Please assist. Not sure how to fix...
  8. My SSL is telling me the connection is encrypted but the page includes other resources which are not secure. I found the post on here suggesting this edit: https://github.com/PrestaShop/PrestaShop/commit/640100f10f789129dc50a0d68e3e82cedf85aad3 But this did NOT work for me! If I right click in Chrome and inspect element, the console says my insecure content is: http://mydomain.com and http://mydomain.com/search I'm not sure where to fix these??? Where you can edit the links to these entries? (Edit: It seems like it's not using the Links file that was edited and using static links to non-secure sites. How could I edit things so it uses my SSL link to media if on a SSL page but a normal link if on non-ssl page?
  9. I am working on my catalog filter options and noticed a few problems... 1) If I set navigation layered block modules filter template to a Drop-down list, if you click the list it opens briefly and then closes automatically in under a second. The only way to get it to work properly is to HOLD down left click and then mouse over the item you want then release. I can not expect my customers to figure this out, so would like to know how to make it so it only updates once clicking a 2nd time, like how drop down boxes typically work on websites. This problem is happening on both website on PC and mobile for me. 2) Since I noticed this problem I figured I would try a Radio button. But I noticed these do not work either. If you have 2 different options and select each, it adds both to the filter list. Radio buttons are only supposed to have "1" selected at any given time. But the radio button is functioning as a "checkbox". If anyone has any advice on how I can fix these it would be appreciated. Thanks
  10. I am trying to emulate the function that the default template has for the clothing website. Where if you go in to one of the category pages, on the left side it lists filters that you can search for your product by. I added some of my own products with appropriate attributes/features. But even though I have multiple products with various feature options, the search filters are not appearing? Is there something you have to do to enable them? Thanks
×
×
  • Create New...