Menu

Still Smarty Error

Help
2004-08-07
2013-04-08
  • Nobody/Anonymous

    Hello there,

    I just installed 0.96 and I have an error with Smarty. I read the thread about it in this forum, and people mention the template_c dir. I dont have it in my installation. The error I have is

    Warning: Smarty error: problem creating directory "/usr/local/4admin/apache/vhosts/bonrruquer.ch//httpdocs/tmp/phpAutoGallery/www.bonrruquer.ch_smarty_compile//%%117/%%1172603085" in /usr/local/4admin/apache/vhosts/bonrruquer.ch/httpdocs/gallery/__phpAutoGallery/include/smarty/Smarty.class.php on line 1042

    Warning: Smarty error: problem writing temporary file '/usr/local/4admin/apache/vhosts/bonrruquer.ch//httpdocs/tmp/phpAutoGallery/www.bonrruquer.ch_smarty_compile//%%117/%%1172603085/4114bca1c01dc' in /usr/local/4admin/apache/vhosts/bonrruquer.ch/httpdocs/gallery/__phpAutoGallery/include/smarty/Smarty.class.php on line 1042

    Warning: touch(): SAFE MODE Restriction in effect. The script whose uid is 10871 is not allowed to access /usr/local/4admin/apache/vhosts/bonrruquer.ch/httpdocs/tmp/phpAutoGallery/www.bonrruquer.ch_smarty_compile owned by uid 2526 in /usr/local/4admin/apache/vhosts/bonrruquer.ch/httpdocs/gallery/__phpAutoGallery/include/smarty/Smarty.class.php on line 1575

    Warning: fetch(): Unable to access /usr/local/4admin/apache/vhosts/bonrruquer.ch//httpdocs/tmp/phpAutoGallery/www.bonrruquer.ch_smarty_compile//%%117/%%1172603085/index.tpl.php in /usr/local/4admin/apache/vhosts/bonrruquer.ch/httpdocs/gallery/__phpAutoGallery/include/smarty/Smarty.class.php on line 1158

    Warning: fetch(/usr/local/4admin/apache/vhosts/bonrruquer.ch//httpdocs/tmp/phpAutoGallery/www.bonrruquer.ch_smarty_compile//%%117/%%1172603085/index.tpl.php): failed to open stream: No such file or directory in /usr/local/4admin/apache/vhosts/bonrruquer.ch/httpdocs/gallery/__phpAutoGallery/include/smarty/Smarty.class.php on line 1158

    Warning: fetch(): Failed opening '/usr/local/4admin/apache/vhosts/bonrruquer.ch//httpdocs/tmp/phpAutoGallery/www.bonrruquer.ch_smarty_compile//%%117/%%1172603085/index.tpl.php' for inclusion (include_path='.:/usr/local/4admin/apache/lib/php') in /usr/local/4admin/apache/vhosts/bonrruquer.ch/httpdocs/gallery/__phpAutoGallery/include/smarty/Smarty.class.php on line 1158

    Any Ideas

     
    • Martin Theimer

      Martin Theimer - 2004-08-16

      "Warning: touch(): SAFE MODE Restriction in effect. ....."

      hmm... php runs in safe_mode on your server. i will have a look at this, but i'm afraid, phpAutoGallery will not work on safe-mode enabled servers...

       
    • lightweight

      lightweight - 2004-10-17

      Hello there,

      thanks for writing this great script (just the thing I need). Yet I still have to get it to work ;-)

      I get the same error message as mentioned above (albeit with different paths).
      It is all related to some logical error in the creation of paths (see first error message). Let's look at the last part of the path name:
      //%%117/%%1172603085
      PHP is trying to create the folder %%1172603085 in the folder %%117. The folder %%117 does not exist at this point in execution of the php script, hence the error when trying to create the subfolder %%1172603085.

      On a side not: PHP 5 does have an option of creating folders recursivley (aka "mkdir -p" in linux) with mkdir, but PHP 4 does not have that option.

      Cheers, lightweight

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.