Errors

Found a bug? Tell us!!
Post Reply
thepoacher
Regular
Posts: 14
Joined: Tue Jan 29, 2008 6:33 pm
Contact:

Errors

Post 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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Errors

Post 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
thepoacher
Regular
Posts: 14
Joined: Tue Jan 29, 2008 6:33 pm
Contact:

Post 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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post 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 :wink:, 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
thepoacher
Regular
Posts: 14
Joined: Tue Jan 29, 2008 6:33 pm
Contact:

Post 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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply