Page 1 of 2

Errors on the Admin Interface

Posted: Fri Jun 09, 2006 11:05 am
by cybermat
Hi,

it's a never ending story. My blog still doesn't run without errors. Now i found a possibility to log errors with a php-include in the script, that causes the errors (my hosting-provider don't logs any errors...).

Already when i log in i got these errors:

"09 Jun 2006 10:19:12","/_path_to_my_webspace_/htdocs/blog_cmat/include/lang.inc.php: 7","(Notice) Undefined index: charset"
"09 Jun 2006 10:19:12","/_path_to_my_webspace_/htdocs/blog_cmat/include/lang.inc.php: 7","(Notice) Undefined index: lang"
"09 Jun 2006 10:19:12","/_path_to_my_webspace_/htdocs/blog_cmat/include/lang.inc.php: 7","(Warning) main(/_path_to_my_webspace_/htdocs/blog_cmat/lang/serendipity_lang_.inc.php): failed to open stream: No such file or directory"
"09 Jun 2006 10:19:12","/_path_to_my_webspace_/htdocs/blog_cmat/include/lang.inc.php: 7","(Warning) main(): Failed opening '/homepages/28/d164195609/htdocs/blog_cmat/lang/serendipity_lang_.inc.php' for inclusion (include_path='.:/usr/local/lib/php')"
"09 Jun 2006 10:19:12","/_path_to_my_webspace_/htdocs/blog_cmat/serendipity_config.inc.php: 121","(Notice) Use of undefined constant CHARSET_NATIVE - assumed 'CHARSET_NATIVE'"
"09 Jun 2006 10:19:12","/_path_to_my_webspace_/htdocs/blog_cmat/include/functions_config.inc.php: 725","(Notice) Undefined index: lang_selected"

There seems to be a problem with the selectedt language, but in the config-table "de" is set?

Has anyone an idea?

Thanks,

Mat

Re: Errors on the Admin Interface

Posted: Fri Jun 09, 2006 11:27 am
by garvinhicking
Hi!

Which version of Serendipity are you using?

Actually the errors there are non-critical. The "NOTICES" don't cause any trouble, and are happening because for performance s9y doesn't check each index for existance when using it. They will then be returned empty, which is no problem.

The warning happens because also for performance reasons we do not first make a "file_exists" check but straight try to include the file. But we use the "@" operator to suppress PHP warnings, and thus this shouldn't affect your performance.

What errors do you face?

Best regards,
Garvin

Posted: Fri Jun 09, 2006 1:38 pm
by cybermat
I get server errors in the iframe, when i save an entry. The iframe that shows normally the trackback and ping messages, then shows the error message. i tried to log those errors, but that doesn't work.

The new/edited entry will be saved anyway, but only without tags.

I've tried a local php.ini with all errorlogging-parameters on, but the error seems to get thrown befor the php-interpreter could log anything.

I don't know what's going wrong, i get an Server Error.
In my local php.ini i have this parameters configured:

display_startup_errors = on
display_errors = on
log_errors = on
report_memleaks = on
error_reporting = E_ALL
error_log = ./error.log
register_globals = off
upload_max_filesize = 40M
memory_limit = 40M

When i comment out the memory_limit variable, i geht no error and the normal trackback-messages to the links in the entry (but they are not formatted) and no ping messages.
i've deleted the tag and the announce plugin, but that makes no difference.

Posted: Fri Jun 09, 2006 1:44 pm
by garvinhicking
Which error message does the iframe show? Which Serendipity are you using?

Posted: Fri Jun 09, 2006 1:48 pm
by cybermat
I use 1.0-beta2 and get an ERROR 500:

Error 500: Interner Serverfehler
Das angegebene Skript konnte nicht fehlerfrei ausgeführt werden

Posted: Fri Jun 09, 2006 1:50 pm
by garvinhicking
Hi!

Can you post the output of your phpinfo() on that server?

Which event plugins are you using?

Regards,
Garvin

Posted: Fri Jun 09, 2006 2:12 pm
by cybermat
I hope you don't mind, that i post the plugins in german, that i only have to copy them:

Lange Einträge aufteilen
Textformatierung: Serendipity
Textformatierung: NL2BR
Konvertiert Zeilenumbrüche zu HTML
Browser-Kompatibilität
Sonderzeichen/Erweiterte Buttons für Non-WYSIWYG
Trackbacks kontrollieren
Spartacus
Erweiterte Optionen für Bildauswahl
Nächster/Voriger Artikel
Statistiken
Spamschutz (SURBL)
Spamschutz (RBL)
Spamschutz
Freie Artikel-Tags
Einträge ankündigen

Could i send an url to the phpinfo() output on my server per mail?

Posted: Fri Jun 09, 2006 2:36 pm
by garvinhicking
Hi!

Some ideas:

1. Try to remove iframe posting. For this, edit your serendipity_config.inc.php and set

Code: Select all

$serendipity['use_iframe'] = false;
2. Try to remove sending trackbacks. Edit your serendipity_config.inc.php and set

Code: Select all

$serendipity['noautodiscovery'] = true;
3. Also try removing the "manual trackback" and the "announce entries" plugins.
Could i send an url to the phpinfo() output on my server per mail?
Sure, send it to me via PM on this board.

Regards,
Garvin

Posted: Fri Jun 09, 2006 3:02 pm
by cybermat
Ok, i disabled iframe posting:

Code: Select all

$serendipity['use_iframe'] = false;
Now, i don't get no errors anymore, but after saving i see nothing, except of the navigation on the left.

But that parameter "noautodiscovery" doesn't exist in the serendipity_config.inc.php, onnly in serendipity_event_aggregator.php and serendipity_event_trackback. Should i disable it in both files?

I sent the phpinfo-output per PM.

Posted: Fri Jun 09, 2006 3:06 pm
by garvinhicking
Hi!

If you then see nothing, did you view the HTML sourcecode of your page? Where does it stop?

About noautodiscovery: That one does not exist, so you need to insert it just somewhere there.

Regards,
Garvin

Posted: Fri Jun 09, 2006 3:25 pm
by cybermat
With trackbacks disabled (noautodiscovery = true) the entry will be saved without errors and the editor is displayed afterwards. The HTML is formatted, but not how it show be. The colours and fontsizes are wrong.

Posted: Fri Jun 09, 2006 11:10 pm
by garvinhicking
Hi!

It seems your server is then blocking outgoing HTTP connections in a bad way. You might want to ask your system provider about firewalling of your server.

Aboutwrong colours and fontsizes -a screenshot of this would be nioce.:)

Regards,
Garvin

Posted: Sat Jun 10, 2006 12:11 am
by cybermat
Ok, i have to ask the support about the firewall.

A Screenshot of my admin-interface, can you find here:
http://cyberm.at/images/serendipity_admin.png

Posted: Sun Jun 11, 2006 5:00 pm
by garvinhicking
Hi!

Apart frmo the red color, it all looks okay? Have a look at the CSS stylesheet that is loaded in your admin panel, did you maybe modify it for red colors?

Regards
Garvin

Posted: Mon Jun 12, 2006 9:18 am
by cybermat
No, i don't modified any color of the css. The colors are not the same, the fontsize is smaller as bevor saving the entry and the categories-pulldown is no pulldown anymore, as it was befor saving.

Can i check the firewall from the commandline? i have ssh access, when i try a wget, i have no problems.