
silvioscavone
Members-
Posts
30 -
Joined
-
Last visited
silvioscavone's Achievements
Newbie (1/14)
0
Reputation
-
Ok, looks like I solved the very BIG problem deleting /cache/class_index.php The website is up again. But I still got: Fatal error: Out of memory (allocated 208404480) (tried to allocate 50 bytes) in /classes/db/DbPDO.php on line 119 Is there any setting to modify in php.ini in your opinion guys? Thanks in advance Silvio
-
Hello guys, I need a big help. I was importing products as usual on our company website when I got this error while going to Attachments catalog page: Fatal error: Out of memory (allocated 208404480) (tried to allocate 50 bytes) in /classes/db/DbPDO.php on line 119 After reading something on the forum on how to solve the problem, I renamed DbPDO.php to DbPDO.php.OLD by FTP in order to find a solution, but I recognized that the code was OK. SO I just renamed back the file to DbPDO.php , I did no modification to the file. Now all the website is down and I got this error: Fatal error: Class 'DbPDO' not found in /classes/db/Db.php on line 208 Anyone can help with this? I'm in big trouble. Thank you very much, Silvio
-
Hello, I'm asking help about a known topic that looks without solution. When generating sitemap.xml , I get a 404 error on prestashop default page (the one you get after installation). The sitemap.xml file is not complete, there are just past prodycts not the new added products. Is this linked to rebuild the index? Why I get 404 error and the sitemap is not complete ? I thanks anyone that can help. Silvio
-
Hi, I uploaded the script on website root, but it stuck on “Starting to delete products...” Looks like no product on that range has been deleted (I checked the first and the last). I can’t understand the reason. Do you have any explanation?
-
Hello, thank you for your reply. I found something on the following thread: https://www.prestashop.com/forums/topic/609319-solved-delete-massive-products-from-database-10420-products/ I'm running PS 1.6 I have low MySQL knowledge but I understand simple queries. You are definitely right, I think it won't be hard, just I need to know how to do it properly because I can't do any mistake. I need something that does exactly what the BO "Massive action -> Delete" does when selecting products, but I need it specifying a product id range. Do you think the script in that thread could work and could I add the condition you mention somewhere ? "WHERE id_product>1000 AND id_product<2000" I thank you very much for your help, Silvio
-
Buonasera, scrivo per chiedere aiuto per un problema urgente. Devo cancellare 100.000 prodotti entro un determinato range, ma chiaramente ci vuole un eternità a farlo manualmente. Vorrei fare uno script in PHP , ma non conosco prestashop così a fondo da poter farlo senza aiuto. Ho trovato qualche thread su altri forum ma non riesco a estrapolare qualcosa di utile. Se qualcuno potesse aiutarmi, gliene sarei grato. Grazie in anticipo, Silvio
-
Hello, I ask help for an urgent problem: I have to delete massively 100.000 products inside an id range. I found a PHP script that should do the job in a past thread, but I’m not sure it works without any damage to the website and looks like it deletes all the products, not a specific range. I have a good PHP background but I don’t have a deep knowledge of prestashop , so I don’t know how to do it properly. If anyone can help, it would be appreciated. Thank you very much in advance, Silvio
-
1.6 [SOLVED] Delete massive products from database (10420 products)
silvioscavone replied to devzk's topic in General topics
Hello Daresh, I'm very interested to your script cause actually I created about 100000 all with a mistake inside and I have to delete all but it takes very long manually. I would like to modify your script in order to specify a product id range to delete for example from product id 3551 to product id 103551. I have good knowledge of php scripting but I'm not pretty sure how to modify the script and wanyt to avoid further mistakes. Your reply would be very appreciated. Thank you in advance. Silvio -
Hello, I have a CSV to import, but a lot of products have special characters in product name, reference, meta title and meta description. I tried to change Validate.php as below: public static function isCatalogName($name) { // return preg_match('/^[^<>;=#{}]*$/u', $name); return preg_match('/^$/u', $name); } and public static function isReference($reference) { // return preg_match('/^[^<>;={}]*$/u', $reference); return preg_match('/^$/u', $reference); } but I succeded to import the products with "#" character but I still can't import products with ">" and "=" characters Any idea? Thank you very much.
-
Hello, I have a CSV to import, but a lot of products have special characters in product name, reference, meta title and meta description. I changed: public static function isCatalogName($name) { // return preg_match('/^[^<>;=#{}]*$/u', $name); return preg_match('/^$/u', $name); } and public static function isReference($reference) { // return preg_match('/^[^<>;={}]*$/u', $reference); return preg_match('/^$/u', $reference); } I succeded to import the products with "#" character but I still can't import products with ">" and "=" characters Any idea? Thank you very much.
-
that's it man. thank you very much. Now the product page looks so cool
-
Hi all, after reading some posts about the same topic, I still can't move my product informations on the right of the product image. Now I have every information below the product image, please check here: http://newsite.rimaoil.it/gb/home/4263-parker-piston-pump-pv140000900210.html I'd like to have all the information on the right of the image. I tried to move the code in product.tpl below: ... <!-- pb-right-column--> <div class="pb-right-column col-xs-12 col-sm-4 col-md-3"> ... but it doesn't work. Am I doing something wrong? do I have to enable something like right column in theme advanced configuration? Waiting for your replies, I thank you all in advance.
-
Hello, I want to change categories image size just on mobile version. So I want a size for nrmal version and another size for mobile version. Is it possible to do that? Cause I changed to Large the categories size and tht's too large for mobile version!! Any idea? Thank you
-
Top Horizontal Menù Links In Sifferent Languages
silvioscavone replied to silvioscavone's topic in General topics
Cause prestashop already do it for CMS page, I need to handle language for a different link respect to selected language, accordignly to modify to blocktopmenu.php shokinro: probably you answered the question, the lang id is a number not iso code, the condition was wrong. Thanks