1819933 Members
3417 Online
109607 Solutions
New Discussion юеВ

PHPNUKE

 
Wim Van den Wyngaert
Honored Contributor

PHPNUKE

Hi,

WASD 8.3 + MYSQL 4.0.15 + PHP 4.3.2 + PHP-NUKE 7.5.

Had some problems activating phpnuke :
1) file format after unzip not OK. Use with unzip/text=auto solved problem.
2) index names created in the mysql db were not ok (same name as column not allowed. I changed the index names where needed.
3) Had to enable some options in php.ini to avoid error messages.

Now, I have 2 problems.
1) The admin page looks like http://www.kvdot.nl/ (the error messages at the top). This while the files are present. A lot of public websites have the same problem.

2) When I create the first user, the POST method doesn't seem to work. I simply get the admin screen again. This while WASD passed the post info ...

Anyone tried this and had the same problem ?

Wim
Wim
13 REPLIES 13
Wim Van den Wyngaert
Honored Contributor

Re: PHPNUKE

To be more complete $_GET, $_POST are empty.
The $var are not present (based upon ?var=val in the url).

Has nothing to do with php-nuke but with php.

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: PHPNUKE

I reviewed the installation and noticed that on 3 dec a new version was released of phpwasd. I re-installed it and now post/get are working (I also found that I was using php.exe instead of phpwasd : it works but not completely).

Problem 1) is still open.

The new problem 2) : access violation (sorry for the bad format).

%SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual address=0000000000000008, PC=000000000018E04C, PS=0000001B%TRACE-F-TRACEBACK, symbolic stack dump follows image module routine line rel PC abs PC PHPSHR 0 000000000013C04C 000000000018E04C PHPSHR 0 00000000000CD3E4 000000000011F3E4 PHPSHR 0 00000000000CD508 000000000011F508 PHPSHR 0 0000000000173E9C 00000000001C5E9C PHPSHR 0 0000000000161868 00000000001B3868 PHPSHR 0 000000000012F6C4 00000000001816C4 PHPWASD PHPWASD ProcessRequest 41561 0000000000001384 0000000000031384 PHPWASD PHPWASD main 41332 000000000000054C 000000000003054C PHPWASD PHPWASD __main 0 000000000000006C 000000000003006C 0 FFFFFFFF802574DC FFFFFFFF802574DC

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: PHPNUKE

With view source it is better ...
Wim
Antoniov.
Honored Contributor

Re: PHPNUKE

Wim,
it is not clear for me what is your trouble.
Can you see your home page?
Can you see phpadmin page?
Can you see mysql admin page?

Antonio Vigliotti
Antonio Maria Vigliotti
Wim Van den Wyngaert
Honored Contributor

Re: PHPNUKE

Antonio,

Sorry for not being clear.

I get the admin menu, I am able to register the first admin user, I get the login screen but when pushing "login", I get the access violation.

I'm now going to upgrade to WASD 9.01. I guess Mark didn't test his stuff with the old 8.3.

Btw : I also have SSL installed.

But any tips are welcome.

Wim
Wim
Antoniov.
Honored Contributor

Re: PHPNUKE

Wim,
are you sure your db is right?
System crash when you make login. If you can login as mySql admin, you can see nuke_user table.
Does user exist which you added?
How do you added new user? Can a new user regisister hisself or you need use phpadmin to insert new one?
Using phpnuke, user have to make pre-registration and then, after receviced e-mail can confirm his registration. This process does work for you?

Antonio Vigliotti
Antonio Maria Vigliotti
Wim Van den Wyngaert
Honored Contributor

Re: PHPNUKE

Antonio,

The db was OK. I deleted in 2 tables (_users and _authors) and retried it. The same access violation when trying login. I don't get e-mail because e-mail is not available on our VMS systems.

Wim
Wim
Antoniov.
Honored Contributor

Re: PHPNUKE

Wim,
if you can log in mySql admin and phpadmin, I guess WASD, mySql and PHP work fine. Because you was not able to install phpnuke using standard configuration I believe something is wrong in your nuke portal.
I remember, when this happens I look at:
1) nuke_config table expecially nukeurl and default_theme fields.
2) file config.php in directory where you downloaded php nuke.
However I'm hungry you'll be able to find solution in some nuke web site, like http://phpnuke.org or http://php-nuke.org. You can also find something in http://phpnuke.nl

Antonio Vigliotti
Antonio Maria Vigliotti
Wim Van den Wyngaert
Honored Contributor

Re: PHPNUKE

I upgraded to 9.01 and the problem persists.
I relinked phpwasd (to be sure). Idem.

How can I find on which line of php code it goes wrong ?

And 1) is also still open.

Wim
Wim
Antoniov.
Honored Contributor

Re: PHPNUKE

I use PHP debugger of Zend but it works only on windows or unix platform.
However you can visit zend home page at http://www.zend.com for more information.
Without debuug it very difficult debugging any php program; you can only display some tag string using echo statement in source program and then you can view HTML code with browser.

Antonio Vigliotti
Antonio Maria Vigliotti
Wim Van den Wyngaert
Honored Contributor

Re: PHPNUKE

GOT IT WORKING.

With the phpwasd debug logical I found that it happened just after I displayed some debug info.

echo "xxx $name";
echo "xxx $_POST[name]";

Bug or feature ?

I removed these 2 lines and it works.

Still open : 1).

Wim

Wim
Antoniov.
Honored Contributor

Re: PHPNUKE

I'm convinced it's a debug :-(
PHP interpreter substitutes $name and $_POST[name] with appropriate values. I should suppose $name is not defined and $_POST[undefined] crashes that's a bug.

Antonio Vigliotti

Antonio Maria Vigliotti
Wim Van den Wyngaert
Honored Contributor

Re: PHPNUKE

Solved 1).

By default the php.ini file contains no value for include_path. Set it to "." and it works.

The warnings looked like

Warning: main(ipban.php): failed to open stream: no such file or directory in /ht_root/phpnuke/html/includes/my_header.php on line 15

Warning: main(): Failed opening 'ipban.php' for inclusion (include_path='') in /ht_root/phpnuke/html/includes/my_header.php on line 15

Note the '' as path.

Wim
Wim