Jump to content

[SOLVED] Need help for Blank page problem on front-office only (windows server)


Recommended Posts

Hi !
I searched amongst topics all day long and tried everything I found with no success.
I moved prestashop v1.2.5 from local to server (windows)
Database is ok & accessible.
Backoffice is OK and accessible (except the "Path is not the same between your browser and you server", but the page opens up).

The shop front page doesn't open : I get a blank page.

I tried to empty the smarty compile directory with no success.

I got the error on that blank page : it reads as follows :

Checked if the files "not found" are in the "compile" smarty directory : No they aren't, the names differ.

Smarty does not seem to be able to re-build them ?
Do I miss one step ?
Files permissions on a windows server should be ok I think.

I will appreciate any help from the community.
I think I am not the first dummy facing that smarty problem, but I recognize that I did not find a clear solution in the forum topics.

The error says : failed to open stream, not "access denied" like in similar posts.

Thank you very much for your help & support.

ERROR TEXT :

Warning: Smarty::include(D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes/tools/smarty/compile\%�^B17^B17F1E91%%header.tpl.php) [smarty.include]: failed to open stream: No such file or directory in D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes\tools\smarty\Smarty.class.php on line 1259

Warning: Smarty::include() [function.include]: Failed opening 'D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes/tools/smarty/compile\%�^B17^B17F1E91%%header.tpl.php' for inclusion (include_path='.;./includes;./pear') in D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes\tools\smarty\Smarty.class.php on line 1259

Warning: Smarty::include(D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes/tools/smarty/compile\%�^A00^A005E062%%index.tpl.php) [smarty.include]: failed to open stream: No such file or directory in D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes\tools\smarty\Smarty.class.php on line 1259

Warning: Smarty::include() [function.include]: Failed opening 'D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes/tools/smarty/compile\%�^A00^A005E062%%index.tpl.php' for inclusion (include_path='.;./includes;./pear') in D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes\tools\smarty\Smarty.class.php on line 1259

Warning: Smarty::include(D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes/tools/smarty/compile\%H^48C^48CC2A40%%footer.tpl.php) [smarty.include]: failed to open stream: No such file or directory in D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes\tools\smarty\Smarty.class.php on line 1259

Warning: Smarty::include() [function.include]: Failed opening 'D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes/tools/smarty/compile\%H^48C^48CC2A40%%footer.tpl.php' for inclusion (include_path='.;./includes;./pear') in D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes\tools\smarty\Smarty.class.php on line 1259

Link to comment
Share on other sites

Thank you eltitos !
Your question forced me to doublecheck the permissions on the smarty folder.
I noticed that both the SYSTEM and the Administrator had "total control" permissions but ............. the number of "users" was larger than expected !

This is how I solved this "failed to open stream" or "access denied" problem.

Environment : Windows server 2003 - Internet Information Services (IIS) Manager - Plesk Panel for Windows

Modus operandi : in Plesk administration panel, list the site directories and files for your website,

scroll to ../root/your-shop/tools/, select the smarty directory. Click on the "locker" icon on the right

side of the screen. Then, when Plesk lists the "users", for each of them you can set the permissions

to "total control" (which include modify, read & execute, list the directory contents, read, write.)

The users are as follows : (unless you previously added roles or specific users):

1. System
2. Administrator
3. Plesk IIS User (IUSRxxx) ( The "user" for all other page requests, an anonymous access account which is used by IIS to access pages on the site for incoming requests )
4. Plesk IIS WP User (IWPDxxx) (The ASP.NET "user")
5. Plesk Domain User (xxx) (the user to login to access the account in Plesk or by FTP)
6. FPSE User : I you use FrontPage.

The permissions of users #3 and #4 need to be modified as we must allow scripts to run and keep track of settings in the smarty cache sub-directory.

It is NOT sufficient to give a total control to the "system" to have the scripts running !!!

System : "total control" (unchanged)
Administrator : "total control" (unchanged)
Plesk IIS User (IUSRxxx): had "list" only ... modified to "total control"
Plesk IIS WP User (IWPDxxx): had "list" only ... modified to "total control"
Plesk Domain User (xxx): "total control" (unchanged)
FPSE User : not considered, I do not use FrontPage.

Note : The procedure is the same if images cannot be accessed to be shown in the Customers/cart listing in the backoffice : In this case modify the permissions of the img folder.
This relates to the following "Permission denied" error :
Warning: imagejpeg() [function.imagejpeg]: Unable to open 'D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes/img/tmp/product_mini_10_50.jpg' for writing: Permission denied in
D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes\images.inc.php on line 40

Hope this will help windows server users.

Eltitos : Thanks again for your suggestion.

Link to comment
Share on other sites

  • 1 month later...
Thank you eltitos !
Your question forced me to doublecheck the permissions on the smarty folder.
I noticed that both the SYSTEM and the Administrator had "total control" permissions but ............. the number of "users" was larger than expected !

This is how I solved this "failed to open stream" or "access denied" problem.

Environment : Windows server 2003 - Internet Information Services (IIS) Manager - Plesk Panel for Windows

Modus operandi : in Plesk administration panel, list the site directories and files for your website,

scroll to ../root/your-shop/tools/, select the smarty directory. Click on the "locker" icon on the right

side of the screen. Then, when Plesk lists the "users", for each of them you can set the permissions

to "total control" (which include modify, read & execute, list the directory contents, read, write.)

The users are as follows : (unless you previously added roles or specific users):

1. System
2. Administrator
3. Plesk IIS User (IUSRxxx) ( The "user" for all other page requests, an anonymous access account which is used by IIS to access pages on the site for incoming requests )
4. Plesk IIS WP User (IWPDxxx) (The ASP.NET "user")
5. Plesk Domain User (xxx) (the user to login to access the account in Plesk or by FTP)
6. FPSE User : I you use FrontPage.

The permissions of users #3 and #4 need to be modified as we must allow scripts to run and keep track of settings in the smarty cache sub-directory.

It is NOT sufficient to give a total control to the "system" to have the scripts running !!!

System : "total control" (unchanged)
Administrator : "total control" (unchanged)
Plesk IIS User (IUSRxxx): had "list" only ... modified to "total control"
Plesk IIS WP User (IWPDxxx): had "list" only ... modified to "total control"
Plesk Domain User (xxx): "total control" (unchanged)
FPSE User : not considered, I do not use FrontPage.

Note : The procedure is the same if images cannot be accessed to be shown in the Customers/cart listing in the backoffice : In this case modify the permissions of the img folder.
This relates to the following "Permission denied" error :
Warning: imagejpeg() [function.imagejpeg]: Unable to open 'D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes/img/tmp/product_mini_10_50.jpg' for writing: Permission denied in
D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes\images.inc.php on line 40

Hope this will help windows server users.

Eltitos : Thanks again for your suggestion.


Hello, I have same problem. I'm not a programmer.
-I have changed CHMOD for /root/your-shop/tools/smarty (ok)

----------------------------------------------------------------------
I don't understood these
----------------------------------------------------------------------
-Plesk IIS User (IUSRxxx): had "list" only ... modified to "total control"
-Plesk IIS WP User (IWPDxxx): had "list" only ... modified to "total control"
-Plesk Domain User (xxx): "total control" (unchanged)
-FPSE User : not considered, I do not use FrontPage.

Do you mean in smarty?
The user only two, no name and



Note : The procedure is the same if images cannot be accessed to be shown in the Customers/cart listing in the backoffice : In this case modify the permissions of the img folder.
This relates to the following "Permission denied" error :
Warning: imagejpeg() [function.imagejpeg]: Unable to open 'D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes/img/tmp/product_mini_10_50.jpg' for writing: Permission denied in
D:\inetpub\vhosts\plinthes-chauffantes.fr\httpdocs\plinthes\images.inc.php on line 40

Where is D:\ ???

----------------------------------------------------------------------
----------------------------------------------------------------------


Thanks
Link to comment
Share on other sites

Hi !
Well, lets try to clarify the "context" :

The shop is hosted on a server running Windows, not Linux, then there is no "CHMOD".

Your FTP program can show some CHMOD features, but they are not applicable on a distant server running Windows.

The shop is hosted on a "shared server" then, you can just access some parameters through its administration panel using Plesk. (Plesk is the application which allows you to administrate your web hosting parameters).
In Plesk, You can modify "permissions" on the remote server (not on your local computer) on a "folder" or "file" basis. When doing this, you see a list of users as listed in my message.
"D" is the remote server where your shop is installed.
The "smarty" directory, is the directory that you have transfered on your distant server, together all the other Prestashop directories.
The prestashop scripts must read, write, modify files that are in this "smarty" directory.

Hope this helps.
Let me know.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...