Jump to content

LockeAG

Members
  • Posts

    12
  • Joined

  • Last visited

Profile Information

  • Location
    Mexico City
  • Activity
    Agency

LockeAG's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. #same here , I get : with MEMCACHE Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in /public/tools/htmlpurifier/HTMLPurifier.standalone.php on line 15136 with OPC Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20756 bytes) in /public/classes/cache/CacheApc.php on line 50 can anyone help here thanks
  2. Hi everyone.. I'm trying to change the Token of all users. Because very old users can't access to my Prestashop because I update to another domain an also at same tame I upgrade Prestashop. But Users Login is invalid cos the token is different . I can't change it one bye one because I have looots of customers.. thanks!!
  3. Hey just notice that the issue is with the SSL , because is active in the whole site.... but now if deactivate ssl option my site goes blank... and getting 502 errors when trying to import some advice here?
  4. @COTOKO you said something intersiting AJAX: Is there any plugin that make this possible??? and about cron jobs... , you mean make my own query to process this directly in the db?? but could you please guide me in which table to alter.... thanks
  5. Thanks for You answer @navid68 , I tried with 10 products and yeah that do the job , but How I will import 28000 products and I'm not importing any images.. thanks!
  6. Hi everyone.. the scenario is this: We try to upload a 28000 csv product file , like 1.8MB splited in 10 files and we always get 504 error I think this is a common error to a very bad Server Configuration o Prestashop Config We use a NGINX+PHP5.5 Every damn Timeout conf was increased to 300 NGINX fastcgi_read_timeout 300; and all PHP + PHP-FPM timeouts a Buffer configuration were extended near the sky our Server have 16GB RAM and a massive amount o SSD HardDrive.... it is odd 'cos in the same server we have a WORDPRESS bigger than our prestashop product DB and this doesn't happen in WP. Can anyone give a hand to detect where is the problem... thanks u
  7. yeah , it is weird , but not at all I migrate to NGINX and change from ps1.5 to ps1.6 thnaks!
  8. I just migrate all my website to an nginx environment and then every time I try to add or edit a user I get: Fatal Error while creating object employee (Unknown column 'optin' in 'field list') (You should know that the warning is in spanish so maybe is not the correct translation to english hahaha) well thanks
  9. Thank u for the correct guidance.. I end up doing: server { listen 80; server_name md.com www.md.com; rewrite ^ https://$server_name$request_uri? permanent; } server { # listen 80 deferred; # for Linux # listen 80 accept_filter=httpready; # for FreeBSD listen 443; # The host name to respond to server_name md.com *.md.com; # Path for static files root /sites/md.com/public; ssl on; ssl_certificate /etc/nginx/ssl/ssl.pem; ssl_certificate_key /etc/nginx/ssl/ssl.key; # Try static files first, then php index index.html index.htm index.php; # Specific logs for this vhost access_log /sites/md.com/log/log-access.log; error_log /sites/md.com/log/log-error.log error; #Specify a charset charset utf-8; rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$1$2$3.jpg last; rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3$4.jpg last; rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4$5.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg last; rewrite ^/order$ /index.php?controller=order last; if (!-e $request_filename){ rewrite ^(.*)$ /index.php last; } # Redirect needed to "hide" index.php location / { try_files $uri $uri/ /index.php?q=$uri&$args; } location /c { rewrite ^/c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ /img/p/$1$2$3.jpg last; rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ /img/p/$1$2.jpg last; } location /p { rewrite ^/p/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ /img/p/$1$2$3.jpg last; rewrite ^/p/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ /img/p/$1$2.jpg last; } location /images_ie { rewrite ^/images_ie/?([^/]+)\.(jpe?g|png|gif)$ /js/jquery/plugins/fancybox/images/$1.$2 last; } # Don't log robots.txt or favicon.ico files location ~* ^/(favicon.ico|robots.txt)$ { access_log off; log_not_found off; } # Custom 404 page error_page 404 /index.php?controller=404; location ~* ^.+.(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|htm|html|js|css|mp3|swf|ico|flv|xml) { access_log off; expires 30d; } # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini # With php5-cgi alone: # fastcgi_pass 127.0.0.1:9000; # With php5-fpm: fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_intercept_errors on; fastcgi_buffers 8 16k; fastcgi_buffer_size 32k; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } # Deny access to .htaccess location ~ /\.ht { deny all; } #PHPMYADMIN location /phpmyadmin { root /usr/share/; index index.php index.html index.htm; location ~ ^/phpmyadmin/(.+\.php)$ { try_files $uri =404; root /usr/share/; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~* ^/phpmyadmin/(.+\.(jpeg|jpg|png|css|gif|ico|js|html|xml|txt))$ { root /usr/share/; } } location /phpMyAdmin { rewrite ^/* /phpmyadmin last; } # Include the basic h5bp config set include h5bp/basic.conf; } That worked for me , basically all my images where in /p , so I just needed to change a bit the structure. For the all other sintoms @matt020983 was correct and my NGINX version is: nginx version: nginx/1.4.7 thanks guys!
  10. @matt020983 that seems to solve the category url thanks ! But when I click on every single product I get a 404 do you have any idea??
  11. Hi Everyone , this is my first post, and seems that would be a complex one (hope no). I've being searching for a good solution about this all combination and after follow: http://www.phamviet.net/2012/06/03/prestashop-rewrite-url-on-nginx/ http://www.nginxtips.com/nginx-configuration-for-prestashop/ http://www.prestashop.com/forums/topic/307168-prestashop-1562-rewrite-urls-over-nginx-install/?hl=%2Bnginx&do=findComment&comment=1554501 Non of above work for me at all... so I star experimenting: After configure well all my SSL , CloudFlare , etc.... I came with this idea: server { listen 80; server_name mysuperdomain.com *.mysuperdomain.com; rewrite ^ https://$server_name$request_uri? permanent; } server { # listen 80 deferred; # for Linux # listen 80 accept_filter=httpready; # for FreeBSD listen 443; # The host name to respond to server_name mysuperdomain.com *.mysuperdomain.com; # Path for static files root /sites/mysuperdomain.com/public; ssl on; ssl_certificate /etc/nginx/ssl/ssl.pem; ssl_certificate_key /etc/nginx/ssl/ssl.key; # Try static files first, then php index index.html index.htm index.php; # Specific logs for this vhost access_log /sites/mysuperdomain.com/log/log-access.log; error_log /sites/mysuperdomain.com/log/log-error.log error; #Specify a charset charset utf-8; # Redirect needed to "hide" index.php location / { rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/$1/$1$2$3.jpg break; rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/$1/$2/$1$2$3$4.jpg break; rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/$1/$2/$3/$1$2$3$4$5.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/$1/$2/$3/$4/$1$2$3$4$5$6.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg break; if (-e $request_filename){ rewrite ^(.*)$ /index.php break; } try_files $uri $uri/ /index.php?q=$uri&$args; } location /c { rewrite ^/c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ /img/$1$2$3.jpg break; rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ /img/$1$2.jpg break; } location /images_ie { rewrite ^/images_ie/?([^/]+)\.(jpe?g|png|gif)$ /js/jquery/plugins/fancybox/images/$1.$2 break; } # Don't log robots.txt or favicon.ico files location ~* ^/(favicon.ico|robots.txt)$ { access_log off; log_not_found off; } # Custom 404 page error_page 404 /index.php?controller=404; location ~* ^.+.(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|htm|html|js|css|mp3|swf|ico|flv|xml) { access_log off; expires 30d; } # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; # With php5-cgi alone: # fastcgi_pass 127.0.0.1:9000; # With php5-fpm: fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_intercept_errors on; fastcgi_buffers 8 16k; fastcgi_buffer_size 32k; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } # Deny access to .htaccess location ~ /\.ht { deny all; } #PHPMYADMIN location /phpmyadmin { root /usr/share/; index index.php index.html index.htm; location ~ ^/phpmyadmin/(.+\.php)$ { try_files $uri =404; root /usr/share/; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~* ^/phpmyadmin/(.+\.(jpeg|jpg|png|css|gif|ico|js|html|xml|txt))$ { root /usr/share/; } } location /phpMyAdmin { rewrite ^/* /phpmyadmin last; } # Include the basic h5bp config set include h5bp/basic.conf; } What seems pathetically to work only for categories , and not for single product page and also . oh! and when you hit the main domain or go to the home page , this file instead of go to home page it wil download the index.php. So a little help will be amazing .. thanks!!
×
×
  • Create New...