teethgrinder Posted April 28, 2014 Share Posted April 28, 2014 Hello, I use prestashop with nginx + php-fpm on a local server. After first install everything works but when I try to localize some settings I started to get empty product quick view / details page. and now I get Fatal error: Class 'Smarty_Internal_SmartyTemplateCompiler' not found in [/size]/home/ytsejam/public_html/myizmirart/tools/smarty/sysplugins/smarty_internal_template.php on line [/size]671 on both frontend and back office. here is my nginx settings. server { # listen 80 deferred; # for Linux # listen 80 accept_filter=httpready; # for FreeBSD listen 80; # The host name to respond to server_name myizmirart.dev; # Path for static files root /home/ytsejam/public_html/myizmirart; #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.php; # Specific logs for this vhost access_log /var/log/nginx/myizmirart.dev/access.log; error_log /var/log/nginx/myizmirart.dev/error.log; #Specify a charset charset utf-8; # PrestaShop rewrite rules 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; } # static file cache configuration location ~* .(gif)$ { expires 2592000s; } location ~* .(jpeg|jpg)$ { expires 2592000s; } location ~* .(png)$ { expires 2592000s; } location ~* .(css)$ { expires 604800s; } location ~* .(js)$ { expires 604800s; } location ~* .(js)$ { expires 604800s; } location ~* .(ico)$ { expires 31536000s; } # 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/php-fpm/php-fpm.sock; fastcgi_intercept_errors on; fastcgi_buffers 8 16k; fastcgi_buffer_size 32k; #fastcgi_buffer_size 128k; #fastcgi_buffers 256 4k; #fastcgi_busy_buffers_size 256k; #fastcgi_temp_file_write_size 256k; 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; } How can I fix this? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now