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!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

On Plus check, if the includes/functions_categories_hierarchy.php will only be included in common.php and not in files like includes/functions.php.
And the includes/functions_categories_hierarchy.php mustn't include any other files.
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 think the best solution here is, for me to first install new fresh phpbb2 plus 1.53, after that update ajax, and after that update cracker tracker to ver 5.
Than I will install all mods again and check the forum all the time if all MODs works ok than I move forum to database.
After that I will ask you for help if something goes wrong.
I think It will take a week to manage all.
thanx for helping.
I will inform you about it.

Should I update something else before install the MODs?

And if MOD have in line HTTP
and other lines in file doesn't have that should I remove this HTTP like it is in other lines where this must be?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Should I update something else before install the MODs?
The Webserver to the newest release (e. g. you have installed 2.0.5x install the newest in this 2.0.x release).
And if MOD have in line HTTP
and other lines in file doesn't have that should I remove this HTTP like it is in other lines where this must be?
???
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 »

Sorry don't know what you mean with web server, majbe phpbb.
phpbb is 2.0.21.
Apache version is 2.2.2
PHP is 5
Mysql is 5

For MODs I was talking about this

Code: Alles auswählen

$HTTP_GET_VARS
and
$HTTP_POST_VARS
MODs still have HTTP, shoul I remove that from lines, like below?

Code: Alles auswählen

$_GET
and
$_POST
In notice that on fresh installation oh phpbbplus if I add a picture, prewiev doesn't show picture.
Zuletzt geändert von Blisk am So 22.Okt, 2006 09:25, 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 »

The Plus set the short variables in the common.php, but long globals will run, too...
Hm... try it: Replace each long gobal variable with the short ones...
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 »

Now I already did that.
I will install MOD by MOD and see if something doesn't work and I will inform you about it.

Can you tell why prewiev does't show pics in new fresh installation?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Can you tell why prewiev does't show pics in new fresh installation?
Pics linked with the BBCode IMG?
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, PICs uploaded with attach mod.
but only in preview. in fresh installation.

And now I install new forum and some MODs and I loose BANNERS.
In which file I must look for banners?
When I check in ACP for banners for one banner crackertracker get me out an warning it is spyscript.
I think maybe carckertracker blocks my banners, because there is no one on every page.
Zuletzt geändert von Blisk am So 22.Okt, 2006 23:04, 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 »

I think, the attachment mod will not display images on the preview to save traffic and performance. I've never tested this...

And for the CT:
Use the latest one (5.0.3) and read the instructions about the debog mode to fix the alerts.
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 »

attachment mod has before always showen the images, because when you make an article aou need to preview an article with images before you post it.
How to make this to work like before?
I found out why banners didn't work it is a stupid trick :d
because it mus be enabled.

Code: Alles auswählen

INSERT INTO phpbb_plus (config_name, config_value) VALUES ("enable_banners", "1");
Zuletzt geändert von Blisk am Mo 23.Okt, 2006 11:27, insgesamt 2-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

For the banners many other user have problems with this feature.
Please look on phpbb2.de for a possible solution.

And Attachments.....
Have you updated to the latest release?
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 »

For bannesr I found solution it must be enabled in mysql.

For attachment mod I was updated to latest, but still no prewiev in post with PIC.

And I have an error when deleting user, If user is made by administrator in ACP then deleting is OK, but if user is made by user itself than I get this error (user is deleted anyway)

Could not delete group for this user

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

DELETE FROM phpbb_groups WHERE group_id =

Line : 246
File : admin_users.php

AND I have another error all the time in my logs
PHP Warning: Invalid argument supplied for foreach() in /forum/viewtopic.php on line 1734
and that line is

Code: Alles auswählen

foreach ($forums_auth as $k=>$v)
Zuletzt geändert von Blisk am Di 24.Okt, 2006 14:16, insgesamt 2-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Check the group tables with DB Maintenance MOD. It will fix this errors...
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 »

sorri still the same errors.
after DB Maintenance MOD

and attachment MOD i checked with old forum files nothing significaint is change.
After that I turn OF preview foe AJAX mod, and now preview for attachment works.
So it is bug in AJAX mod.
Zuletzt geändert von Blisk am Di 24.Okt, 2006 15:59, 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 »

It's not a Bug.
The AJAX Features do not know the Attachment MOD, so the attachments will not be displayed on preview ;)
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 »

Ok I hope users know that
:)

And how to solve other errors?
Deleting user and PHP Warning: Invalid argument supplied for foreach() in /forum/viewtopic.php on line 1734
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Deleting user and PHP Warning: Invalid argument supplied for foreach() in /forum/viewtopic.php on line 1734
Can you post some more lines for checking this?
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 thought before about this error ->

And I have an error when deleting user, If user is made by administrator in ACP then deleting is OK, but if user is made by user itself than I get this error (user is deleted anyway)
I did like you said with DB maintenance.

Could not delete group for this user

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

DELETE FROM phpbb_groups WHERE group_id =

Line : 246
File : admin_users.php
_____________________________________________________________________

AND I have another error all the time in my logs
PHP Warning: Invalid argument supplied for foreach() in /forum/viewtopic.php on line 1734
and that line is

Code: Alles auswählen

foreach ($forums_auth as $k=>$v)
I attached viewtopic

[ Attachment gelöscht am Mi 25.Okt, 2006 15:58 von oxpus ]
Zuletzt geändert von Blisk am Mi 25.Okt, 2006 08:26, 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 »

The error on viewtopic.php:
There is $forums_auth be missing!!!!!
Insert before the line 1734 this code:

Code: Alles auswählen

$forums_auth = auth(AUTH_READ, AUTH_LIST_ALL, $userdata);
This maybe fix the problem.

And for user deleting: If the DB Maintanance will fix/not found errors, the admin_users.php will be broken (after modding ??? ;) )
Attach this file to take a look.
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 now vieswtopic works withouth an error. :D
About deleting users and error file is attached.

And found 2 more errors in my LOG ^6 sorri I know you are bussy.

First is this, below (I attached privmsg.php too)

Code: Alles auswählen

PHP Warning:  sprintf() [<a href='function.sprintf'>function.sprintf</a>]: Too few arguments in /forum/privmsg.php on line 2167, referer: http://povej.net/forum/portal.php
And next is with cash MOD I get this error in my LOG

Code: Alles auswählen

PHP Fatal error:  Call to a member function update_delete() on a non-object in /forum/includes/functions_post.php on line 613, referer: http://www.povej.net/forum/viewtopic.php
This error is showen up when I try to delete a post, and cannot, nothings happend, just this error in my log.
Suporters for this mod said that is something with phpbb and not with mod, this worked before on PHP4
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

For privmsp.php: You will format text with to few arguments.
Look on lang_main.php for

Code: Alles auswählen

$lang['Inbox_size']
$lang['Sentbox_size']
$lang['Savebox_size']
If you will found there more ths one %s, the text needs more parameters. And to check the parameters, look on the portal.php ;)

And like this, still the viewtopic.php will have problems with the cash mod while using functions from includes/funtions_post.php.
I do not know the cash mod, so I can't help here.

At least the error on deleting users:
I think the line

Code: Alles auswählen

		$user_id = ($new_user) ? $user_id : intval($_POST['id']);
must be replace with

Code: Alles auswählen

		$user_id = (!$new_user) ? $user_id : intval($_POST['id']);
to get the right user_id. Try it out...
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 »

Sorri deleting user stil don't work

Code: Alles auswählen

Could not delete group for this user

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

DELETE FROM phpbb_groups WHERE group_id = 

Line : 410
File : usercp_register.php
about cash MOD if I don't find solution I will uninstall it.
I have just one question, does ajax do a deleting post?
because I see on google some mods are not compatibile with cash mod and add this line to the cash mod to work.

Code: Alles auswählen

FIND
   $cash_message = $GLOBALS['cm_posting']->update_post($mode, $post_data, $forum_id, $topic_id, $post_id, $topic_type, $bbcode_uid, $post_username, $post_message);


REPLACE WITH
   if (!$save_as_draft)
   {
      $cash_message = $GLOBALS['cm_posting']->update_post($mode, $post_data, $forum_id, $topic_id, $post_id, $topic_type, $bbcode_uid, $post_username, $post_message);
   } 
About lang files I found this lines in lang_main.php

Code: Alles auswählen

$lang['Inbox_size'] = 'Prejeta pošta je %d%% zasedena <br>%s'; // eg. Your Inbox is 50% full
$lang['Sentbox_size'] = 'Mapa s poslano pošto je %d%% zasedena <br>%s'; 
$lang['Savebox_size'] = 'Mapa s shranjeno pošto je %d%% zasedena <br>%s'; 
What should I look in portal.php what relation have this with portl.php

thanx
Zuletzt geändert von Blisk am Mi 25.Okt, 2006 22:41, 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 »

Hm, the texts will need 2 parameters, but per default only one will be provided.
Here the original texts from a vanilla phpBB:

Code: Alles auswählen

$lang['Inbox_size'] = 'Your Inbox is %d%% full'; // eg. Your Inbox is 50% full
$lang['Sentbox_size'] = 'Your Sentbox is %d%% full'; 
$lang['Savebox_size'] = 'Your Savebox is %d%% full'; 
And on user deleting:
Here you have the error on usercp_register.php. The second file, but I've fix the admin_users.php!!! Will this work?
Then search the same line I've named in the usercp_register.php and mod it, too.
I have just one question, does ajax do a deleting post?
??? Ajax will not delete a post itself, only on an user command...
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 deleted cash MOD because it is too much problematic.

About deleting user I moded admin_users.php
but sill doesn't work. I still get error and when i try to change something in user profile in ACP it said...user doesn't exist.

I also look for that line in usercp_register.php but can't find that line in it.

And error in my LOG

Code: Alles auswählen

File does not exist: /forum/forum, referer: http://www.povej.net/forum/admin/admin_userlist.php?sid=442ea1c19fe85
Zuletzt geändert von Blisk am Do 26.Okt, 2006 14:54, 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 »

File does not exist
Simple a missing file ;)

Hmpf, the Add New User MOD from Niels will produces many errors on several Boards, too.
Maybe it will be better to uninstall this MOD and install my http://www.oxpus.de/downloads.php?view=detail&id=247 MOD instead *hiding fast*
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!
Antworten