1
ALineberger
Smarty::fetch error on initial start
  • 2005/6/27 20:21

  • ALineberger

  • Just popping in

  • Posts: 7

  • Since: 2005/6/27


Went through the standard "Blank Page T/S" and did manage to get an error report out. It seems that there are files missing from \templates_c\ - or atleast that's what I am deciphering. Downloaded both latest full versions, gz and zip and both were empty. Hrm. Here's the text of the error.
Quote:
Warning [PHP]: Smarty::fetch(D:/aan/xoops/templates_c\%%6E^6E8^6E8C036B%%db%3Asystem_block_login.html.php) [function.fetch]: failed to open stream: No such file or directory in file D:\aan\xoops\class\smarty\Smarty.class.php line 1255
Warning [PHP]: Smarty::fetch() [function.include]: Failed opening 'D:/aan/xoops/templates_c\%%6E^6E8^6E8C036B%%db%3Asystem_block_login.html.php' for inclusion (include_path='\php\ext;c:\php') in file D:\aan\xoops\class\smarty\Smarty.class.php line 1255
Warning [PHP]: Smarty::fetch(D:/aan/xoops/templates_c\%%42^428^428512AB%%db%3Asystem_block_mainmenu.html.php) [function.fetch]: failed to open stream: No such file or directory in file D:\aan\xoops\class\smarty\Smarty.class.php line 1255
Warning [PHP]: Smarty::fetch() [function.include]: Failed opening 'D:/aan/xoops/templates_c\%%42^428^428512AB%%db%3Asystem_block_mainmenu.html.php' for inclusion (include_path='\php\ext;c:\php') in file D:\aan\xoops\class\smarty\Smarty.class.php line 1255
Warning [PHP]: Smarty::fetch(D:/aan/xoops/templates_c\%%20^200^200DC337%%theme.html.php) [function.fetch]: failed to open stream: No such file or directory in file D:\aan\xoops\class\smarty\Smarty.class.php line 1248
Warning [PHP]: Smarty::fetch() [function.include]: Failed opening 'D:/aan/xoops/templates_c\%%20^200^200DC337%%theme.html.php' for inclusion (include_path='\php\ext;c:\php') in file D:\aan\xoops\class\smarty\Smarty.class.php line 1248


The files requested from the \class\smarty\ directory all exist. But there are no files in the \templates_c\ directory save and index.htm and an empty CVS directory.

Where'd I screw up?

System : W2k3SP1 / IIS 6.0
DB: mySQL 4.1.12
PHP: php5

As is IIS6 have set the Internet Guest Account to have write / modify on /cache, /uploads, templates_c/ and mainfile.php.
Thanks!

2
m0nty
Re: Yet another blank page error - but with Error Report!!!
  • 2005/6/27 20:49

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


FAQ section is cool or the search block..

but in your case, make sure templates_c is writable and not read only.. chmod 777

3
ALineberger
Re: Yet another blank page error - but with Error Report!!!
  • 2005/6/27 21:04

  • ALineberger

  • Just popping in

  • Posts: 7

  • Since: 2005/6/27


/templates_c/ tests as writable.

It looked to me from the error codes that Smarty was trying to fetch a series of non-existant files. Is this not the case?

4
m0nty
Re: Smarty::fetch error on initial start
  • 2005/6/27 22:05

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


hmmm

can u check the MySQL db character set correlation.. it could be that..

change the default character set of the db to latin1.

u can use mysqladmin to do that i think..

5
ALineberger
Re: Smarty::fetch error on initial start
  • 2005/6/27 22:06

  • ALineberger

  • Just popping in

  • Posts: 7

  • Since: 2005/6/27


Right.

Apparently the Internet Guest Account doesn't need just write privileges on /Cache ,/templates_c, and /upload, and /mainfile.php - it needs Full permissions.

I am a little worried about the security ramifications here. Doesn't this mean that someone could upload a php script attack to your cache directory and execute it?

6
m0nty
Re: Smarty::fetch error on initial start
  • 2005/6/27 22:12

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


yes & no.. i'm not a server geek, so i can't answer fully..

but there are possibly other methods of securing your site.

definitely make sure fopen is disabled in php.ini

but i think you found the cause of your problem.. just i'm not up on the security aspects of it.. but those folders *must* be writable.

7
rowdie
Re: Smarty::fetch error on initial start
  • 2005/6/27 22:56

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


Quote:

ALineberger wrote:
Right.

[...]and /mainfile.php - it needs Full permissions.



I'm probably misreading this, but I hope you don't mean you are giving mainfile.php full permissions. Only the folders you listed need it, definitely not mainfile.php.

8
ALineberger
Re: Smarty::fetch error on initial start
  • 2005/6/27 23:22

  • ALineberger

  • Just popping in

  • Posts: 7

  • Since: 2005/6/27


You are correct. The first setup page post installation requires the user to delete the /install directory and set mainfile.php to read-only. I had not seen this when I last posted.

Login

Who's Online

263 user(s) are online (157 user(s) are browsing Support Forums)


Members: 0


Guests: 263


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits