Jump to content

Edit History

siomosp

siomosp

Hello,

At a Prestahop installation , PS v 1.7.5.1 , PHP 1.7.3.3 , Nginx 1.10 , friendly urls on with Greek and English Language i had errors

"An error occurred while processing your request prestashop"

The  error was triggering for products with attributes , e.g sizes , when selecting a different size

The error fixed after  adding at nginx.conf the following x

### [Friendly url MULTILANG]
### change el$, el with your language code , eg fr , un-comment and change language code for more languages

   

 rewrite ^/en$ /en/ redirect; 
     rewrite ^/en/(.*) /$1;
     rewrite ^/el$ /el/ redirect;
     rewrite ^/el/(.*) /$1;
    # rewrite ^/es$ /el/ redirect;
    # rewrite ^/el/(.*) /$1;

(restart nginx)

The fix adapted from https://github.com/PrestaShop/PrestaShop/blob/develop/docs/server_config/nginx.conf.dist#L103

* The sample nginx.conf is available  at downloaded prestashop.zip,  folder \docs\server_config\nginx.conf.dist

The sample nginx.conf requires edit to mach your server settings

I hope it will help someone!

 

siomosp

siomosp

Hello,

At a Prestahop installation , PS v 1.7.5.1 , PHP 1.7.3.3 , Nginx 1.10 , friendly urls on with Greek and English Language i had errors

"An error occurred while processing your request prestashop"

The  error was triggering for products with attributes , e.g sizes , when selecting a different size

The error fixed after  adding at nginx.conf the following x

### [Friendly url MULTILANG]
### change el$, el with your language code , eg fr , un-comment and change language code for more languages

   

 rewrite ^/en$ /en/ redirect; 
     rewrite ^/en/(.*) /$1;
     rewrite ^/el$ /el/ redirect;
     rewrite ^/el/(.*) /$1;
    # rewrite ^/es$ /el/ redirect;
    # rewrite ^/el/(.*) /$1;

(restart nginx)

The fix adapted from https://github.com/PrestaShop/PrestaShop/blob/develop/docs/server_config/nginx.conf.dist#L103

* The sample nginx.conf is available  at downloaded prestashop.zip,  folder \docs\server_config\nginx.conf.dist

The sample nginx.conf requires edit to mach your server settings

I hope it will help someone!

 

siomosp

siomosp

Hello,

At a Prestahop installation , PS v 1.7.5.1 , PHP 1.7.3.3 , Nginx 1.10 , friendly urls on with Greek and English Language i had errors

"An error occurred while processing your request prestashop"

The  error was triggering for products with attributes , e.g sizes , when selecting a different size

The error fixed after  adding at nginx.conf the following x

### [Friendly url MULTILANG]
### change el$, el with your language code , eg fr , un-comment and change language code for more languages

   

 rewrite ^/en$ /en/ redirect; 
     rewrite ^/en/(.*) /$1;
     rewrite ^/el$ /el/ redirect;
     rewrite ^/el/(.*) /$1;
    # rewrite ^/es$ /el/ redirect;
    # rewrite ^/el/(.*) /$1;

(restart nginx)

The fix adapted from https://github.com/PrestaShop/PrestaShop/blob/develop/docs/server_config/nginx.conf.dist#L103

* The sample nginx.conf is available  at downloaded prestashop.zip,  folder \docs\server_config\nginx.conf.dist

The sample nginx.conf requires edit to mach your server settings

I hope it will help someone!

 

siomosp

siomosp

Hello,

At a Prestahop installation , PS v 1.7.5.1 , PHP 1.7.3.3 , Nginx 1.10 , friendly urls on with Greek and English Language i had errors

"An error occurred while processing your request prestashop"

The  error was triggering for products with attributes , e.g sizes , when selecting a different size

The error fixed after  adding at nginx.conf the following x

### [Friendly url MULTILANG]
### change el$, el with your language code , eg fr , un-comment and change language code for more languages

   

 rewrite ^/en$ /en/ redirect; 
     rewrite ^/en/(.*) /$1;
     rewrite ^/el$ /el/ redirect;
     rewrite ^/el/(.*) /$1;
    # rewrite ^/es$ /el/ redirect;
    # rewrite ^/el/(.*) /$1;

(restart nginx)

The fix adapted from https://github.com/PrestaShop/PrestaShop/blob/develop/docs/server_config/nginx.conf.dist#L103

* The sample nginx.conf is available  at downloaded prestashop.zip,  folder \docs\server_config\nginx.conf.dist

The sample nginx.conf requires edit to mach your server settings

I hope it will help someone!

 

×
×
  • Create New...