Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.5
Author Message
MrAnderson
Hangin' Around



Joined: Nov 04, 2004
Posts: 34

PostPosted: Fri Jan 28, 2005 4:45 am Reply with quote

My site was working 100% for a long time. But then I recently upgraded my server from windows 2000 to 2003 and when i did that, my site stopped working. I had a hassle with php4 and upgraded to php5. Now my PHP is working, but I get the following errors on my site:


Notice: Undefined variable: querystring in C:\Network\Websites\MAE\mainfile.php on line 19

Notice: Undefined variable: HTTP_USER_AGENT in C:\Network\Websites\MAE\mainfile.php on line 24

Notice: Undefined variable: HTTP_SERVER_VARS in C:\Network\Websites\MAE\mainfile.php on line 30

Notice: import_request_variables() [function.import-request-variables]: No prefix specified - possible security hazard in C:\Network\Websites\MAE\mainfile.php on line 47

Notice: Undefined variable: forum_admin in C:\Network\Websites\MAE\mainfile.php on line 125

Notice: Undefined variable: inside_mod in C:\Network\Websites\MAE\mainfile.php on line 128

Notice: Undefined variable: inside_mod in C:\Network\Websites\MAE\db\db.php on line 44


My web server is IIS6, win32, mysql 4.0.21, php 5.0.3. Please help. Thank you very much. Let me know if i need to post those lines. (probably do, but i dont wanna fish them out if i dont have to. It might be something obvious.)

-Mr.Anderson
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Jan 28, 2005 5:23 am Reply with quote

http://www.ravenphpscripts.com/faq-2-Nuke+.html-+Troubleshooting#18
 
View user's profile Send private message
MrAnderson







PostPosted: Fri Jan 28, 2005 6:04 am Reply with quote

I knew about that. When I do that, all I get is a blank page, so I enable errors so I can see the problem, and thats all it shows. I know what you thought I meant, I used to get those notice errors that you can ignore, my page shows up with the errors. With this, nothing shows up except. errors. Any other ideas? Thank you.
 
Raven







PostPosted: Fri Jan 28, 2005 6:15 am Reply with quote

The blank page is a separate error. Turn those messages off, get the blank page, and then look in your server error log.
 
MrAnderson







PostPosted: Fri Jan 28, 2005 7:48 am Reply with quote

I'm sorry if this is a stupid question. But you mean my IIS error log or another error log? If its the IIS error log, it looks normal:

"2005-01-28 13:44:37 W3SVC1 192.168.1.2 GET /mae/index.php - 80 - 192.168.1.4 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0) 200 0 0"

No errors in it. Is there another error log you are refering to?
 
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Fri Jan 28, 2005 7:55 am Reply with quote

In all honesty phpnuke works on IIS barely adding php5.03 to the mix you better really know what your doing. If at all possible I'd downgrade to php4.3.10

I know MySQL 5 and PHP 5 are coming and here but there hasn't been a large movement in the community to support either yet.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
Raven







PostPosted: Fri Jan 28, 2005 8:11 am Reply with quote

Right on Six!
 
MrAnderson







PostPosted: Fri Jan 28, 2005 3:00 pm Reply with quote

I heard before that php 5.03 was a bad idea. Guess that was right. Thanx you guys. I guess im going back to 4.3.10.
 
Andrzej
Hangin' Around



Joined: Jan 22, 2004
Posts: 31

PostPosted: Sat Jan 29, 2005 8:53 am Reply with quote

Quote:
I know MySQL 5 and PHP 5 are coming and here but there hasn't been a large movement in the community to support either yet.


So - my provider changes for PHP5 - I have that:

Quote:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /includes/sql_layer.php on line 191


In sql_layer lines 165 - 212:

Quote:

function sql_query($query, $id)
{
global $dbtype;
global $sql_debug;
$sql_debug = 0;
if($sql_debug) echo "SQL query: ".str_replace(",",", ",$query)."<BR>";
switch ($dbtype) {

case "MySQL":
$res=@mysql_query($query, $id);
return $res;
break;;

case "mSQL":
$res=@msql_query($query, $id);
return $res;
break;;

case "postgres":
case "postgres_local":
$res=pg_exec($id,$query);
$result_set = new ResultSet;
$result_set->set_result( $res );
$result_set->set_total_rows( sql_num_rows( $result_set ) );
$result_set->set_fetched_rows( 0 );
return $result_set;
break;;

case "ODBC":
case "ODBC_Adabas":
$res=@odbc_exec($id,$query);
return $res;
break;;

case "Interbase":
$res=@ibase_query($id,$query);
return $res;
break;;

case "Sybase":
$res=@sybase_query($query, $id);
return $res;
break;;

default:
break;;
}
}


No chance?

Have I to migrate do another CMS ?
 
View user's profile Send private message
Raven







PostPosted: Sat Jan 29, 2005 9:35 am Reply with quote

Not at all. That message means that you have a block or module that is not correct with the table it's trying to call - it's not in sql_layer itself. Find this code
Code:
case "MySQL": 

$res=@mysql_query($query, $id);
return $res;
break;;

and temporarily change it to
Code:
case "MySQL": 

$res=mysql_query($query, $id);
return $res;
break;;

Now you should see all kinds of messages. Find the error one and right above it you should see what table is causing the error.
 
Andrzej







PostPosted: Sat Jan 29, 2005 10:29 am Reply with quote

Problem is - the new PHP5 is on a trial serwer (backup) - they will change for PHP 5.0.3 on Monday. So I can't try now any changes in the code.

BUT...
They advised me to change the extencion from .php to .php4 (and all the calls to such files Bang Head ). the old PHP4 wile handle that in old way.

Raven, what do you think about that? Is it a lot of work?

Andrzej
 
Raven







PostPosted: Sat Jan 29, 2005 12:08 pm Reply with quote

??? You can't make any changes in YOUR code?
 
Andrzej







PostPosted: Sat Jan 29, 2005 12:49 pm Reply with quote

New PHP5 to test is Only registered users can see links on this board! Get registered or login! (it is a backup for test only). I have not access to these files.

I have normal access to my files Only registered users can see links on this board! Get registered or login! - but they are working till tomorrow under PHP4.

What are you thinking of changing extensions?
 
Raven







PostPosted: Sat Jan 29, 2005 3:46 pm Reply with quote

No reason to unless that is how they will delineate between PHP4 and PHP5. That would be a tremendous amont of work on your part. If that's what they want you to do, come host with me RavensScripts
 
Andrzej







PostPosted: Sun Jan 30, 2005 9:13 am Reply with quote

Thanks Raven,

You have a nicy (price) sevice and I think - nowhere is better security. RavensScripts

But my service is in Poland.

Problem solved. They changed for PHP5 with such option: only .php5 extension is working with PHP5. Normal .php files stay with PHP4.

Wave

But the problem with PHP5 for PHPNuke is coming
HitsFan

And this element in the name of this great CMS: PHP-Nuke. And it will be not compliant with PHP Question Question Question
 
sixonetonoffun







PostPosted: Sun Jan 30, 2005 10:04 am Reply with quote

http://docs.php.net/en/migration5.html
But if you visit the php 5 bug reports I think you'll find that its not as pretty as all that.
Honestly I can't imagine a host opening up a php5 machine without making it opt in at this point in time.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.5

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©