Skip to main content
Topic: A lot of messages in the error log (Read 2849 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

A lot of messages in the error log

Hello!

First I have  to apologise for my English, it's very poor. ;)  I hope, that I can make myself understood.

Second I would like to thank all of you for developing ElkArte. I really like it, :)  It's so clever and well organized, very comfortable to use and it has got a very nice and clear design.

Third there are a few problems  ;) and I need some help:

There were several mistakes by using Elkarte together with Simple Portal. The portal wasn't working properly, for example, I could not collapse blocks or use the possibilities to show the same blocks in portal and forum. By using the block "latest topics" in the detailed version, the messages were in incorrect order by time or not shown at all. The shoutbox nearly don't worked at all.

I don't know the reasons - maybe it depends on some mistakes in ElkArte, which I have recognized in my forum? Installation of Simple Portal was without any errors. Maybe it is a problem with the server? Unfortunately I dont't know anything about this stuff.

Yesterday Jorin installed ElkArte for me again, Version 1.0 RC2 , but the same errors are shown as before. I did not try to install Simple Portal again, first should the forum run without mistakes. 

For example:

Everytime when I am going to post or by creating a new topic, there is a message in the error log, on line 355. It says:
QuoteDOMDocument::saveHTML() expects exactly 0 parameters, 1 given
http://ea.XXX.de/index.php?action=post2;start=0;board=1
Datei: /var/www/XXX/html/ea/sources/subs/Html2Md.class.php
Zeile: 355

If I look in my profile, i cannot see the thumbnails of my uploaded pictures, there is another error logged, on line 2535. It says:

QuoteUndefined index: id_thumb
http://ea.XXX/index.php?action=profile;u=1
Datei: /var/www/XXX/html/ea/sources/subs/Profile.subs.php
Zeile: 2535

Maybe someone can help me, so that I can talk to my hoster,  about changing things on the server wich are necessary to do?
Last Edit: August 26, 2014, 05:45:58 am by Ruth

Re: A lot of messages in the error log

Reply #1

The probleme causes running  PHP < 5.3.
Your host need to update: min. PHP 5.3.6, better PHP5.4.

Re: A lot of messages in the error log

Reply #2

Welcome to ElkArte! :D

Quote from: Ruth – Everytime when I am going to post or by creating a new topic, there is a message in the error log, on line 355. It says:
QuoteDOMDocument::saveHTML() expects exactly 0 parameters, 1 given
http://ea.XXX.de/index.php?action=post2;start=0;board=1
Datei: /var/www/XXX/html/ea/sources/subs/Html2Md.class.php
Zeile: 355
Yep, as said by NetFlag this seems to be related to php 5.2, there are two ways to solve:
1) update to 5.3.6
2) apply these two changes:
https://github.com/elkarte/Elkarte/commit/6c627cc5d02ffa72e7cb9b0863f23bbb622c26f1
https://github.com/elkarte/Elkarte/commit/dda7b49d1fc8a3b226f148b3e4cce91e25d80de4

Quote from: Ruth – If I look in my profile, i cannot see the thumbnails of my uploaded pictures, there is another error logged, on line 2535. It says:

QuoteUndefined index: id_thumb
http://ea.XXX/index.php?action=profile;u=1
Datei: /var/www/XXX/html/ea/sources/subs/Profile.subs.php
Zeile: 2535
Yep, this is a new bug.
In Profile.subs.php:
Code: (find) [Select]
'id_thumb' => $row['id_thumb'],
Code: (replace with) [Select]
'id_thumb' => !empty($row['id_thumb']) ? $row['id_thumb'] : '',
should do the trick.
Bugs creator.
Features destroyer.
Template killer.

Re: A lot of messages in the error log

Reply #3

Thank you very much!

Is it necessary to do both? 1) update to 5.3.6 and 2) apply those two changes?

Re: A lot of messages in the error log

Reply #4

Nope, one of the two is enough.
Bugs creator.
Features destroyer.
Template killer.

Re: A lot of messages in the error log

Reply #5

Great! Then maybe @Jorin can do this for me?

Re: A lot of messages in the error log

Reply #6

I'm sure he can. :D