The requested URL /forum/forum/admin/index.php was not found The requested URL /forum/forum/admin/index.php was not found
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

The requested URL /forum/forum/admin/index.php was not found

Started by Rascal71, April 14, 2004, 02:13:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rascal71

Hi there,

I'm using version 1.2 of Coppermine with PHPBB 2.04 integration and applied the login/logout hack 2nd version http://forum.coppermine-gallery.net/index.php?topic=2972 .

Everything seems to work fine but (there's always a "but"), When click on "users" i get the following error message:

Not Found
The requested URL /forum/forum/admin/index.php was not found on this server.


my URL to the PHPBB forum is : www.fj1200.nl/forum
my URL to my Coppermine gallery is : www.fj1200.nl/gallery

In the "bridge/phpbb.inc.php" i got the line:

define('PHPBB_WEB_PATH', 'http://www.fj1200.nl/forum/');

Which seems fine to me.

Shouldn't the path point to "www.fj1200.nl/gallery/usermgr.php"  :?:
When I enter that in my browser it doesn't work either.
It then gives me a 404 Page not found.


any suggestions?

Casper

Your code should be;

define('PHPBB_WEB_PATH', '/forum/');

Try that.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Rascal71

Nope...that didn't work.
It also doesn't say that in the "bridge/phpbb.inc.php" file.

it says:
// The web path to your phpBB directory
// In this example http://yoursite_name.com/phpBB2/
define('PHPBB_WEB_PATH', 'http://www.fj1200.nl/forum/');


So my path setting should be ok.

Casper

Quote from: "Bridge file"// The web path to your phpBB directory
// In this example http://yoursite_name.com/phpBB2/
define('PHPBB_WEB_PATH', '/phpBB2/');

This is the example given in the bridge file.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Rascal71

I absolutely agree...but since "PHPBB2" is not the name of the folder where my PHPBB2 installation is (that would be "forum" in my case), it doesn't make much sense to let the script think it is...does it..... :?

Casper

I think you are missing the point.  It is an example, telling you that if your url is;
http://yoursite_name.com/phpBB2/

Then your code should be this;
define('PHPBB_WEB_PATH', '/phpBB2/');

So your line of code should be this;
define('PHPBB_WEB_PATH', '/forum/');

Please try it and make sure you refresh the page.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Rascal71

Sorry, you're right...I missed that part....

But now I changed the line exactly as you requested but still the outcome is the same.

Joachim Müller

please post the rest of your modifications of phpbb.inc.php as well (the lines 20-45).

GauGau

Rascal71

Here it is......I replces the username and password with "myusername" and "mypassword"// ------------------------------------------------------------------------- //
// Modify the values below according to your Board installation
// ------------------------------------------------------------------------- //
// database configuration
define('PHPBB_DB_NAME', ''); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'myusername'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'mypassword'); // The password to use to connect to the database

// The web path to your phpBB directory
// In this example http://yoursite_name.com/phpBB2/
define('PHPBB_WEB_PATH', '/forum/');
define('PHPBB_LOGOUT_GET', FALSE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table

// ------------------------------------------------------------------------- //

Joachim Müller

Quotedefine('PHPBB_DB_NAME', ''); // The name of the database used by the board
your db name is blank!

GauGau

Rascal71

I know...leaving the database name blank solved my previous problem.

http://forum.coppermine-gallery.net/index.php?topic=5234

If i put my database name back in there my problems get worse...

Joachim Müller

urm, this is a tricky one. In my opinion, the solution with the empty db name is wrong - it's impossible that a db name can be blank, so your problem must lie somewhere else. I suggest you go back one step back to where you have been before and put the db name back in and try to track down the error from the other thread first. Sorry I haven't replied on the other thread earlier to advice you so.

GauGau

Rascal71

Hmm....I don't know Gaugau....
Like I said in the previous thread, if I enter the query with the database name directly into PhpMyAdmin I get an error, if I enter the query without the database name it works fine.....so does the problem really come from the Coppermine script?

The only thing that doesn't work right now is the usermanager function from within the coppermine script.
But, and correct me if I'm wrong, I could do this also from within the PHPBB2 script.....right?

Something else that's really strange is that when I try to access the Coppermine usermanager function from a different computer then I get a "404 Page not found" and in the address bar it points at "http://www.fj1200.nl/gallery/usermgr.php".
Usermgr.php is in the gallery dir. on my server...I double checked.

If you want me to help and correct this problem in the script then I am more than willing to help, just tell me what to try next and I will tell you the outcome.

Joachim Müller

If you have activated bbs integration it's expected bahaviour that coppermine's user manager doesn't do anything, as coppermine no longer uses it's own user management, but that of your bbs.

If your only problem is the usermgr.php and everything else works for you, then your question simply doesn't apply.

GauGau

Rascal71

So this error message that I get when I press the button for the user manager is an expected error?
Then why not disable this function when bbs integration is turned on.

Anyway, you're right...this is my only problem (for now) so I'll just leave it like that.

Thanks for the help.

Joachim Müller

when using integration the user manager link of coppermine should send you to your bbs's user management. That's at least what it does for me. If this redirection doesn't work for you, you can either modify the link manually (in theme.php) or visit the user manager of your board (since you're the admin no "regular" user will find out or see any weird error messages).

GauGau