Page 1 of 1
Errors
Posted: Mon Mar 31, 2008 4:00 pm
by thepoacher
Hi,
Logged into my site as usual today (
http://www.mountain7.co.uk) and was getting this error
serendipity error: could not include /home/mountai1/public_html//serendipity_config_local.inc.php - exiting.
Please create the file yourself or check permissions
I spoke to a developer who fixed the permissions on the php file. Now the error is far more complex and we're both stumped
Cannot write to directory /home/mountai1/public_html/templates_c. Please check the permissions.
Fatal error: Smarty error: [in file:/home/mountai1/public_html/templates/mountain7/entries.tpl line 1]: syntax error: unrecognized tag 'serendipity_hookPlugin' (Smarty_Compiler.class.php, line 590) in /home/mountai1/public_html/bundled-libs/Smarty/libs/Smarty.class.php on line 1095
Does anyone have any help or ideas on this one please?
Many thanks
Matt
Re: Errors
Posted: Mon Mar 31, 2008 5:05 pm
by yellowled
thepoacher wrote:Cannot write to directory /home/mountai1/public_html/templates_c. Please check the permissions.
Seems like the directory /tempates_c/ (which is the place where template files are caches) also has a permissions problem. It's probably not writable for the webserver.
thepoacher wrote:
Fatal error: Smarty error: [in file:/home/mountai1/public_html/templates/mountain7/entries.tpl line 1]: syntax error: unrecognized tag 'serendipity_hookPlugin' (Smarty_Compiler.class.php, line 590) in /home/mountai1/public_html/bundled-libs/Smarty/libs/Smarty.class.php on line 1095
There is some kind of syntax error in the first line of your /templates/mountain7/entries.tpl - maybe you forgot to open or close some { or }? If you're not sure, post the content of this file (well, maybe the first lines will suffice

) here.
YL
Posted: Mon Mar 31, 2008 5:26 pm
by thepoacher
Hey man - thanks for this. I'll post a chunk from the tpl file. I've put it into notepad format. Hope this makes sense because to me it looks like someone has vomited onto the page!
<!-- ENTRIES START -->
{serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
{foreach from=$entries item="dategroup"}
{foreach from=$dategroup.entries item="entry"}
<div class="post">
<h2 id="post-{$entry.id}"><a href="{$entry.link}">{$entry.title}</a></h2>
{if !$is_single_entry}<small>{$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY}</small>{/if}
{if $entry.categories}
<span class="categoryIcon">
{foreach from=$entry.categories item="category"}
{if $category.category_icon}
<a href="{$category.category_link}"><img class="categoryIcon" title="{$category.category_name|@escape}{$category.category_description|@emptyPrefix}" alt="{$category.category_name|@escape}" src="{$category.category_icon}" /></a>
{/if}
{/foreach}
</span>
{/if}
<div class="entrytext">
<p>
{$entry.body}
{if $is_single_entry}
<a id="extended"></a>{$entry.extended}
{/if}
</p>
{if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
<br /><a href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}</a><br /><br />
{/if}
<p class="postmetadata{if $is_single_entry} graybox{/if}">
<small>
{if $is_single_entry}
Thanks again and let me know if you need anything more.
Cheers
Matt
Posted: Mon Mar 31, 2008 10:29 pm
by yellowled
thepoacher wrote:Hope this makes sense because to me it looks like someone has vomited onto the page!
<!-- ENTRIES START -->
{serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
Well, I'm used to wading in that kind of vomit

, but this one actually looks okay. I'm lost ... have you or the guy who helped you before fixed the permissions for templates_c already?
Does it help to delete the files in templates_c? Does it work if you log into your blog (assuming you still can log in) and switch to a different template?
YL
Posted: Mon Mar 31, 2008 10:59 pm
by thepoacher
Hi,
well, from what I can see the permissions for that folder are set to 'write' for 'user' and read for everything else. So why the permissions are failing is beyond me.
I can actually log into the admin suite and tried the change of template but that made no difference and I get the same error. Gah!
Any thoughts?
Thanks again for your time on this
Matt
Posted: Mon Mar 31, 2008 11:12 pm
by yellowled
thepoacher wrote:well, from what I can see the permissions for that folder are set to 'write' for 'user' and read for everything else. So why the permissions are failing is beyond me.
Well, for starters permissions on a unix or linux system usually consist of - to keep it
very simple - read, write, and execute. These can be set for user, group and world-wide seperately. Now, if, for instance, the webserver user doesn't have write access to /templates_c/, it might not be able to delete a cached templates file that contains errors.
Have you tried to delete all those cached files in /templates_c/?
thepoacher wrote:I can actually log into the admin suite and tried the change of template but that made no difference and I get the same error. Gah!
Seems like one advice which is often used in this forum is called for: Wait for Garvin to save us!
YL
Posted: Tue Apr 01, 2008 2:11 pm
by garvinhicking
Hi!
To me this sounds as if your s9y installation is completely garbaged.
Please re-upload all files from your original s9y version installation tarball to make sure you have all the proper files (be sure you do not overwrite files you modified locally).
The error comes because of a missing smarty function, but that function should be declared in include/functions_smarty.inc.php.
I suppose your webserver crashed painfully and corrupted many files with it.
Regards,
Garvin