Update PHP4 to PHP5

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Update PHP4 to PHP5

Beitrag von Blisk »

On PHP4 forum works ok, but on PHP5 alot of things doesn't work, like search, get's me a blank white page.

I notice when I install MODs on forum alot of files are almost the same in forum which works on PHP4 and PHP5 with the one which works only on PHP4.
Only lines with

Code: Alles auswählen

$HTTP_GET_VARS
and
$HTTP_POST_VARS
are in most files differend
instead of that it is

Code: Alles auswählen

$_GET
and
$_POST
Is that the major reason why forum doesn't work on PHP5.
Should I change all lines in files from

Code: Alles auswählen

$HTTP_POST_VARS to $_POST
and forum will work.

I already when install some MODs change this code, should I do for all files?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

No, do NOT replace these variables.
Update to the newer 1.5.3 to went back to the forum under php 5.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I have installed 1.5.3 version, but some MODs still have

Code: Alles auswählen

$HTTP_POST_VARS
And now some things doesnt work, like search.
So I think it is because of the MODs.
What to do to solve this?


First I installed version 1.5.3 on PHP4 and some MODs, it was working great.
Today I upgraded to PHP5 and 1/2 of forum doesnt work.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Please list all pages, which will be just blank.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

search
Nev posts (x) - this one is regarded to search.
View unanswered posts
View posts since last visit (5) - this two also
Bookmarks
ranks

user profile - is blank, but not white page
rank images are gone-this was working on PHP4
rules-also was working on PHP4
ajax edit post doesn't save changes-must go to main editor

this all works on PHP4, but not on PHP5 :(
Zuletzt geändert von Blisk am Do 19.Okt, 2006 22:36, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Ajax must be updates to the newest.
Use the update scripts from phpbb2.de.

And vor the rest please attach
search.php, ranks.php, usercp_viewprofile.php to take a look.

But one other question: Do you have made a server change or just update PHP from 4 to 5?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Thanks for helping.

I will update ajax I didn't know it must be updated.

When I was updating PHP, there was still php.ini from version 4.
i did disabled that and enabled php.ini from PHP5.
And of course made some settings in the script the same it was in php.ini for php4.

[ Attachment gelöscht am Fr 20.Okt, 2006 14:55 von oxpus ]
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Hmpf, did you check the complete php.ini?
Will be e. g. the memory limit set to 16mb and more?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

yes I did, memory limit is 32 Mb

are files OK?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

are files OK?
I'll check them later...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

aha, OK.
I will check the php.ini again!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

I've modded the files a little bit to take a look under PHP 5.
If they will still not work, please comment the line

Code: Alles auswählen

error_reporting  (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
on common.php and post alle error messages (you can get a lot of them).

This can help to debug the scripts...
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I didn't remeber to check log's before.
So i checked and found out this
PHP Fatal error: Cannot use object of type ct_database as array in /forum/search.php on line 272, referer: http://www.povej.net/forum/posting.php
So I checked line 272 and delete this out, because in instalation there is no code for crackertracker for this line, must be from form verison.

Code: Alles auswählen

if( !$ctracker_config['searchtime'] || !$ctracker_config['maxsearch'] )
		{
than I get this error
PHP Parse error: syntax error, unexpected '}' in /forum/search.php on line 1780
so I deleted this out.
and now search works OK
:D
I just checked and ranks still doesn't work.
And when i edit post with ajax, can save it.
save doesn't work.

I uploaded your files except search.

I checked log and this what i found
File does not exist: /forum/ajax
but there is folder ajax and in are files
Zuletzt geändert von Blisk am Fr 20.Okt, 2006 16:01, insgesamt 4-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

And the debug messages?
Like I wrote in my last post?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I did put that line in common.php, but there was no debug lines.
i put the line to start of file , the end of file and nothing

i manage to solve a problem about ranks it look in strange folder for images.
/forum/templates/fisubsilversh/images/lang_slovenian/ranks/forum/images/rank/tacke
where I can set that it will look in
/forum/images/rank/tacke

In ACP I can manage only the part of path!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

I did put that line in common.php, but there was no debug lines.
i put the line to start of file , the end of file and nothing
You should comment this line!
So insert in front of the named line ;)
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

sori stupid me! :/
now i comment out, but still nothing no text or code.
i did even empty cache but still nothing

I found out that preview doesnt work.
and search doesn't work
No topics or posts met your search criteria

and when I click in
user profile > find all posts by user

then I get a list of all post by user.
but all posts have (no subject)

and when I click page 2 I get this
No topics or posts met your search criteria


I don't know what I did that search doesn't work anymore!

If I use your fixed search page is show up, but when I searc something I get blank white page!
Zuletzt geändert von Blisk am Fr 20.Okt, 2006 17:19, insgesamt 3-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

i did even empty cache but still nothing
Which cache?
The browser cache or the cache folder in the forum root?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

cache from forum root, browser cache should't be problem!

I tyed again cleaning both caches and open in IE, and still nothing.

I found out, that almost all problems are because search doesn't work.

Only ajax, don't know why doesn't work.
Zuletzt geändert von Blisk am Sa 21.Okt, 2006 10:15, insgesamt 3-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Hm, you are using a phpBB Plus. Did you update the AJAX MOD designed for the Plus or do you update the Features with the original MOD?
kufikugel was build an AJAX release just for the Plus...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I did update for the phpbb plus.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

And which Plus do you use? Still the 1.5.2?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

No that was before I installed 1 month ago latest version of 1.53, just because of PHP5, because Fedora support now only PHP5.
And I did install on that 1.53 version some MODs, and forum really works great.
I didn't change PHP version one week just to be soure everything works OK.
After that I change PHP4 to PHP5, and there was alot of problems.
Can it help If I give you a access to files?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Can it help If I give you a access to files?
The problem is time. I've not enough...
Do you have installed some mods into the search.php before/after you updated the forum?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

some mod was installed before updating forum, some was after.
I have installed some MODs into search too.
but I tryed original search, and was the same white blank page.

What can I do to help solve this problem.
I know you have not much time, so I will wait.
In meentime I will try to find some solution.

Do you have some suggestions what to do?
Antworten