Jump to content

segera

Members
  • Posts

    0
  • Joined

  • Last visited

Profile Information

  • First Name
    Edwin
  • Last Name
    Bekaert

Recent Profile Visitors

211 profile views

segera's Achievements

Newbie

Newbie (1/14)

5

Reputation

  1. I don't think you are using all of my files... or at least the latest version shown in my original post as you would not see teh 403 forbidden due to this line: error_page 403 /index.php?controller=404; # fake that the source does not exist when access deny However 403 tells me more then 404. Your javascript files are blocked probably because you don't use the loc_allow that allows all css and js files: include /etc/nginx/includes/loc_allow; #allow image, js & css files etc... If you don't want to have the different files, but want to use them inside one single file you have to respect the order in which the files are included as that is very important. then past the content of that included file at the moment it is included
  2. Could you please hit F12 in the browser then go to console and reload the page? report any errors and/or file not found errors...
  3. your admin folder must be put here: # Symfony controllers location ~ ^/MY_ADMIN_FOLDER/index.php/(.*) { try_files $uri $uri/ /MY_ADMIN_FOLDER/index.php$is_args$args; }
  4. I think I got it working now... I altered my first post... Please let me know if something still doesn't work...
  5. where does the pages in the list shown in: index.php?controller=AdminMeta come from? I have 35 URL's being nice, however I had to add these manually myself: pdf-invoice order-detail order-return attachment So in fact I had 31 after the install There are still these that aren't prettified: (clicking add page on top will give you a dropdown to choose) getfile pdf-order-return pdf-order-slip bestsales (in listing) newproducts (in listing) pricedrop (in listing) So after a fresh install there are 41 pages however only 31 are prettyfied and listed on that page. When one enables the pretty urls, he gets confused about some pages being prettified and others not. After some headbanging one realizes that he needs to add 10 more pages to the list. So I started "Fix your friendly url's" to alert people they need to complete the list before evaluating if that feature works or not.
  6. I guess you don't get it... so never mind... it is working, but not all pages have a nice url... because they are not defined and they need to be manually defined in the back office after a fresh install whereas I would expect them to be defined by default for all pages that come with the initial install. in in the admin you go to: [admin_folder]/index.php?controller=AdminMeta&addmeta the dropdown should be empty
  7. It is a statement that everyone needs to visit that page and add the missing URL's after a fresh install and optioning for friendly URL's. I would expect them to be there from the beginning.
  8. After ordering the customer gets to see a blank page due to an error while sending an email. First off... sending an email should not block the website experience; but instead log the errors and continue... https://github.com/PrestaShop/PrestaShop/tree/1.7.0.x/mails/en order_conf_product_list.txt should match the github repo one. Caution you have possible 2 locations: [root]/mails/[language code]/order_conf_product_list.txt AND [root]//themes/classic/mails/[language code]/order_conf_product_list.txt the one in the theme is created when you use the interface to translate the email body texts
  9. A fresh install does NOT come with ALL friendly URLs... Go to Traffic and select "add new page"... The drop-down should be empty; if not, create a friendly URL for that page
  10. I updated the config and removed "translations" from the "close the door" part in /etc/nginx/includes/prestashop7 Yes combinations are shown...
  11. I think I got it to work for about 95% so please let me know what I am missing... in /etc/nginx/conf.d/MYDOMAIN.conf server { listen 80; listen [::]:80; server_name MYDOMAIN.TLD; return 301 https://www.MYDOMAIN.TLD$request_uri; } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name www.MYDOMAIN.TLD; root /var/www/MYDOMAIN.TLD; ssl_certificate /etc/letsencrypt/live/www.MYDOMAIN.TLD/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/www.MYDOMAIN.TLD/privkey.pem; include /etc/nginx/includes/loc_deny; #include /etc/nginx/includes/cloudflare; include /etc/nginx/includes/prestashop7; include /etc/nginx/includes/php; } in /etc/nginx/includes/loc_deny ==> I use this for different sites using different apps location ~ /\. { deny all; access_log off; log_not_found off; } # .htaccess, .htpasswd, .DS_Store (Mac) location ~ \.tpl$ { deny all;} location ~ ~$ { access_log off; log_not_found off; deny all; } location = /CVS { deny all; access_log off; log_not_found off; } location ~* /(?:uploads|files|upload)/.*\.php$ { deny all; access_log off; log_not_found off; } location ~ ^/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ { deny all; access_log off; log_not_found off; } location ~ ^/(bin|SQL)/ { deny all; access_log off; log_not_found off; } location ~* ^/wp-content/uploads/.*.(html|htm|shtml|php|js|swf)$ { deny all; access_log off; log_not_found off; } location ~* wp-config.php { deny all; access_log off; log_not_found off; } location ~ ^/\.user\.ini { deny all; access_log off; log_not_found off; } in /etc/nginx/includes/prestashop7 ==> change MY_ADMIN_FOLDER to your admin folder error_page 404 /index.php?controller=404; error_page 403 /index.php?controller=404; # fake that the source does not exist when access deny # jpg relocation location ~* ^/([0-9])([0-9])?([0-9])?([0-9])?([0-9]?)([0-9])?([0-9])?([0-9])?(-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)(.jpg)$ { 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; } location ~ ^/c/(.*){ rewrite ^/c/([0-9]+)(-[.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+.jpg$ /img/c/$1$2$3.jpg last; rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+.jpg$ /img/c/$1$2.jpg last; } include /etc/nginx/includes/loc_allow; #allow image, js & css files etc... # close the door please... extensions in loc_allow are already allowed, so close the rest... location ~ ^/(app|bin|cache|classes|config|controllers|docs|download|js|localization|mails|modules|override|pdf|src|themes|tools|vendor)/(.*)$ {deny all; access_log off; log_not_found off;} # Symfony controllers location ~ ^/MY_ADMIN_FOLDER/index.php/(.*) { try_files $uri $uri/ /MY_ADMIN_FOLDER/index.php$is_args$args; } # language alias location ~ ^/([a-zA-Z][a-zA-Z])/(.*) { try_files $uri /index.php$is_args$args; } # api alias location ~ ^/api/(.*) { try_files $uri /webservice/dispatcher.php?url=$1; } location / { try_files $uri $uri/ /index.php?q=$uri&$args; } in /etc/nginx/includes/loc_allow ==> I use this for different sites using different apps location = /robots.txt { allow all; log_not_found off; access_log off; } location ~ /\.well-known { allow all; } # ssl #location ~* \.(eot|otf|ttf|woff|woff2)$ { add_header Access-Control-Allow-Origin *; } # Cloudflare location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|woff2|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|cur)$ { allow all; access_log off; log_not_found off; expires max; } location ~* ^.+\.(js|css)$ {allow all; access_log off; log_not_found off; expires 30d;} in /etc/nginx/includes/php location ~ [^/]\.php(/|$) { try_files $uri =403; include fastcgi_params; fastcgi_index index.php; fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_keep_conn on; fastcgi_intercept_errors on; fastcgi_max_temp_file_size 0; fastcgi_temp_file_write_size 256k; fastcgi_buffer_size 8k; fastcgi_buffers 64 8k; fastcgi_busy_buffers_size 8k; fastcgi_send_timeout 180s; # send to php waiting fastcgi_read_timeout 300s; # wait for php to respond client_max_body_size 10m; # size of request fastcgi_pass unix:/run/php/php7.0-fpm.sock; }
  12. ERROR admin/themes/default/template/layout.tpl line 79: <h4>{l s='There are %d warnings:' sprintf=[count($warnings)]}</h4> sprintf should be an array... Webservices admin page wasn't showing... So I added the square brackets...
×
×
  • Create New...