Not logged in. · Lost password · Register
Forum: Support Bug reports and troubleshooting RSS
Problems with php upgrade to 5.3.1
Page:  1  2  next 
jacobask #1
Member since Nov 2007 · 8 posts · Location: Denmark
Group memberships: Members
Show profile · Link to this post
Subject: Problems with php upgrade to 5.3.1
Hi

Everything has been runing fine since the last update, but suddenly I was met by a blank page as I try to enter the forum.

I was told be the web-hotel-support, that php was upgradet to 5.3.1

The site is at: http://www.aarhushavkajakklub.dk/php/forum/

I can't realy figure out where it went wrong..

Any suggestions?

Regards
Jacob
Avatar
Yves (Administrator) #2
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Sorry, no blank pages here. Did you look at the usual places like log files?
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
jacobask #3
Member since Nov 2007 · 8 posts · Location: Denmark
Group memberships: Members
Show profile · Link to this post
A moved it all to another webhotel where I can be running on php5.2 for now.

I think the problem was due to some functions which was deprecated in php5.3.1

Regards
Jacob
Mikkel (Guest) #4
No profile available.
Link to this post
I have the same problem after my webhost upgraded to php 5.3.1. I am meet by a blank page. I tried the both 1.6.4 and the development version  2009-06-06 without success.

After enabling errors I get the following message

Deprecated: Function set_magic_quotes_runtime() is deprecated in /customers/sudu.dk/sudu.dk/httpd.www/mythtvplayer/forum/unb_lib/common.lib.php  on line 77

Error: HTTP headers have already been sent! Caused by output from file ~/mythtvplayer/forum/unb_lib/common.lib.php at line 77. The error was detected after initialisation.

Any suggestions?
jacobask #5
Member since Nov 2007 · 8 posts · Location: Denmark
Group memberships: Members
Show profile · Link to this post
Looking at your page, it seamed that you solved the problem - how?

Even though I solved the issue ( kind of -downgrading php is not realy a solution but a temporary fix), I would like to find a solution to the problem.

There is a list of deprecated functions in php5.3.x (compared to 5.2):
http://php.net/manual/en/migration53.deprecated.php

The problem might actually be caused by the ned "E_DEPRECATED" error function...

Regards
Jacob
zyrus (Guest) #6
No profile available.
Link to this post
Habe das gleiche Problem, nachdem mein Webhoster auf PHP 5.3 geupdatet hat funktioniert UNB nicht mehr wegen deprecated functions. Habe leider keine Möglichkeit auf PHP 5.2 zurückzugehen. gibts bereits eine möglichkeit unb unter php 5.3 zum laufen zu kriegen?
Avatar
Michael #7
User title: UNB user
Member since Dec 2007 · 19 posts · Location: Bayern, Germany
Group memberships: Members
Show profile · Link to this post
Quote by zyrus:
gibts bereits eine möglichkeit unb unter php 5.3 zum laufen zu kriegen?

Würde mich auch interessieren. Mein Hoster möchte mich auch auf 5.3 updaten.
Avatar
Yves (Administrator) #8
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
(Sorry, jetzt hab ich beim Antworten irgendwie auf Englisch umgeschaltet und hab's gar nicht gemerkt... Wenn jemand was nicht versteht, bitte fragen.)

Please take a look at your file "forum.php" in UNB's main directory. There's a line with $DEBUG quite at the beginning of the file. Does it contain the string "+showerrors"? If yes, please replace the plus by a minus sign or somehow else make that substring disappear. Then errors are no longer reported to the web user, which is the default and recommended behaviour for production sites. If errors are not displayed by PHP (but still logged in the background), they can't cause any trouble which they likely do when enabled.

If this is not the problem (ie the substring "+showerrors" does not appear in the $DEBUG variable), you could try to alter the error_reporting() function a bit further below. Replace it from
error_reporting(E_ALL & ~E_NOTICE);
to
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
This will exclude deprecated function calls from the reported errors which they really aren't. This will only work in PHP 5.3 since that constant is not defined in prior PHP versions which will in turn result in an error.

Please let me know which of these fixes work for you.

I am going to find some time in the near future to work off the recently reported issues and release a new version then. I just can't tell when. I'll need to spend a weekend for that to get it all done.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
This post was edited on 2010-05-05, 22:21 by Yves.
zyrus (Guest) #9
No profile available.
Link to this post
Habe die änderungen vorgenommen aber es bleibt dabei, dass ich kein forum angezeigt bekomme :-(

Habe gesehen, dass er sich u.a. an set_magic_quotes_runtime(0); in der common.lib.php stört, da diese funktion deprecated ist.

sonst noch ideen, wie ich das wieder zum laufen kriegen kann?
Avatar
Yves (Administrator) #10
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Okay, nach etwas rumsuchen hab ich noch weitere Probleme gefunden. PHP 5.3 definiert anscheinend neue Funktionen, die UNB vorher definiert hat. Dann knallt's natürlich. Schon blöd mit globalen Funktionen, wenn plötzlich jemand anderes neue definiert... aber das ist halt so in PHP. Also ich werd den UNB-Code wohl mal komplett durchchecken müssen. So lange ist er einfach nicht kompatibel mit PHP 5.3.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Avatar
Yves (Administrator) #11
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Wie es scheint, ist neben den oben beschriebenen Anpassungen in forum.php nur noch eine weitere Datei betroffen, nämlich unb_lib/mime.lib.php. Ich habe die Funktion quoted_printable_encode nun in my_quoted_printable_encode umbenannt. Die neue Datei hängt diesem Beitrag an. Damit sollte UNB erstmal zum Laufen zu bringen sein.

Diese Datei gehört zur aktuellen dev-Version von UNB 1. Es ist aber möglich, dass sie auch in 1.6.4 funktioniert, das hab ich nicht ausprobiert.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
The author has attached one file to this post:
mime.lib.php 9.4 kBytes
You have no permission to open this file.
zyrus #12
Member since May 2010 · 5 posts
Group memberships: Members
Show profile · Link to this post
vielen dank,
scheint wieder zu laufen, wobei ich jetzt nicht alles mögliche ausprobiert habe. aber zumindest sehe ich das forum wieder, kann mich auch wieder einloggen und beiträge lesen und schreiben.

Also nochmals,
vielen Dank für die schnelle Hilfe
zyrus #13
Member since May 2010 · 5 posts
Group memberships: Members
Show profile · Link to this post
Habe dann doch schon zwei kleine Funktionseinschränkungen mit diesem Workaround gefunden, sind jetzt nicht wichtig, aber helfen dir vielleicht beim überarbeiten für die nächste Version:

1. Wenn man einen Beitrag schreibt und die Smileys über die Smiley-Leiste durch anklicken einfügen möchte, klappt das nicht. Die Smiley-Leiste wird zwar angezeigt, aber anklicken hat keinen Effekt.

2. Unterhalb der Textbox bei "Textlänge: xxx Zeichen (Max 10.000=" wird die aktuelle Zeichen anzahl nicht angezeigt, stattdessen ein schickes "?" ;-)

Vielleicht war dieser Hinweis ja hilfreich.
Beste Grüße
Avatar
Yves (Administrator) #14
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Smileys funktionieren bei mir. Welchen Browser verwendest du? Ich vermute du hast ein generelles JavaScript-Problem. Kannst du z.B. auf den Pfeil neben dem Benutzernamen über jedem Beitrag klicken, um weitere Benutzerdaten anzuzeigen?
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Pompei2 #15
Member since Mar 2010 · 17 posts
Group memberships: Members
Show profile · Link to this post
Here is my patch that makes all upgrade problems I had so far disappear.
I have not tested every single feature of the board, so I cannot guarantee that these are all errors, of course.
Apply this patch while in the unb's unb_lib subfolder.

Hope you find it useful.
The author has attached one file to this post:
unb_php53.patch 6.6 kBytes
You have no permission to open this file.
This post was edited on 2010-05-11, 15:03 by Pompei2.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page:  1  2  next 
Go to forum
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Page created in 207.1 ms (154.1 ms) · 132 database queries in 119.1 ms
Current time: 2013-05-20, 20:52:54 (UTC +02:00)