Page 1 of 1
Problem trying to watch the blog
Posted: Mon Sep 06, 2004 10:28 pm
by etchever
When I try to watch the blog, returns the following message:
Warning: main(): Failed opening '' for inclusion (include_path='/home/caetcha/public_html/b/:/home/caetcha/public_html/b/bundled-libs/:.:/usr/lib/php:/usr/local/lib/php') in /home/caetcha/public_html/b/serendipity_genpage.inc.php on line 43
What's the problem?
Thanks.
Re: Problem trying to watch the blog
Posted: Tue Sep 07, 2004 12:54 pm
by garvinhicking
We need more data: Which s9y version are you using? Which Template did you set?
Line 43 contains a gettemplateFile('layout.php') call in my version. Does that file exist in your subdirectories below 'templates', at least in the 'default' directory?
Regards,
Garvin
Re: Problem trying to watch the blog
Posted: Tue Sep 07, 2004 1:14 pm
by garvinhicking
For debuging, could you please edit your serendipity_genpage.inc.php file and replace that line with:
Code: Select all
echo 'Template file is: ' . serendipity_getTemplateFile('layout.php', 'serendipityPath');
include_once(serendipity_getTemplateFile('layout.php', 'serendipityPath'));
And then also please open your serendipity_functions_config.inc.php and search for the serendipity_getTemplateFile() function. Replace it with:
Code: Select all
function serendipity_getTemplateFile($file, $key = 'serendipityHTTPPath') {
global $serendipity;
$directories = array(
(isset($serendipity['template']) ? $serendipity['template'] . '/' : ''),
$serendipity['defaultTemplate'] .'/',
'default/'
);
foreach ($directories as $directory) {
$templateFile = $serendipity['templatePath'] . $directory . $file;
if (file_exists($serendipity['serendipityPath'] . $templateFile)) {
return $serendipity[$key] . $templateFile;
} else {
echo 'File not found: ' . $serendipity[$key] . $templateFile . "<br />\n";
}
}
return false;
}
(Not the 'else' part with the file not found message, that's what I added). And then please show us your output!
Thanks a lot!
Re: Problem trying to watch the blog
Posted: Tue Sep 07, 2004 1:19 pm
by garvinhicking
Ah, it's me again
Did you maybe download the 0.7-beta1 tarball yesterday? Please check if your file is about 800kb in size; if not, you got a bad release from SourceForge, and please download the file again!
Thanks,
Garvin
Re: Problem trying to watch the blog
Posted: Tue Sep 07, 2004 4:47 pm
by etchever
garvinhicking wrote:Ah, it's me again
Did you maybe download the 0.7-beta1 tarball yesterday? Please check if your file is about 800kb in size; if not, you got a bad release from SourceForge, and please download the file again!
Thanks,
Garvin
I made that and now it works. I can see the blog, but, if I select Portuguese Brazil as default language and edition in mode wysiwyg, there are two problems: the wysiwyg panel don't appears at "Entry body" and don't works at "Extended body".
Thanks.
Re: Problem trying to watch the blog
Posted: Wed Sep 08, 2004 10:49 am
by garvinhicking
Hi etchever!
I made that and now it works. I can see the blog, but, if I select Portuguese Brazil as default language and edition in mode wysiwyg, there are two problems: the wysiwyg panel don't appears at "Entry body" and don't works at "Extended body".
Thanks.
Hm, did you try if the editor appears when selecting english language? If it appears,, then please open the file lang/serendipity_lang_pt.inc.php and change this line:
to this:
(Note the capitals becoming lowercase)
Re: Problem trying to watch the blog
Posted: Wed Sep 08, 2004 9:18 pm
by etchever
garvinhicking wrote:Hi etchever!
I made that and now it works. I can see the blog, but, if I select Portuguese Brazil as default language and edition in mode wysiwyg, there are two problems: the wysiwyg panel don't appears at "Entry body" and don't works at "Extended body".
Thanks.
Hm, did you try if the editor appears when selecting english language? If it appears,, then please open the file lang/serendipity_lang_pt.inc.php and change this line:
to this:
(Note the capitals becoming lowercase)
The editor appears when I select english language. I made the modification sugested, but the problem remains.
Thank you.
Re: Problem trying to watch the blog
Posted: Thu Sep 09, 2004 12:31 am
by etchever
etchever wrote:garvinhicking wrote:Hi etchever!
I made that and now it works. I can see the blog, but, if I select Portuguese Brazil as default language and edition in mode wysiwyg, there are two problems: the wysiwyg panel don't appears at "Entry body" and don't works at "Extended body".
Thanks.
Hm, did you try if the editor appears when selecting english language? If it appears,, then please open the file lang/serendipity_lang_pt.inc.php and change this line:
to this:
(Note the capitals becoming lowercase)
The editor appears when I select english language. I made the modification sugested, but the problem remains.
Thank you.
After comment the line sugested, it works fine. Only the editor panel remains in english, but this is not a problem. I think is a good idea to rename the file "en.js", in 'htmlarea/lang, to "pt_br.js".
Thank you..