Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Solved]: pb with some features  (Read 6647 times)

0 Members and 1 Guest are viewing this topic.

yannlemerle

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
[Solved]: pb with some features
« on: April 12, 2004, 03:26:57 pm »

Hello,

I have a pb to use some features,  eg adding new user

I get the message:
The requested URL /www.mydomain.com/cpg1.2.1_standalone/usermgr.php was not found on this server

but on my browzer I see that there is twice my domain name

_http://www.mydomain.com/www.mydomain.com/cpg1.2.1_standalone/usermgr.php

is there a way to fix that?

Thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
[Solved]: pb with some features
« Reply #1 on: April 12, 2004, 04:21:26 pm »

log in as admin, admin mode, hit config and check that "Target address for the 'See more pictures' link in e-cards" points to your coppermine dir (without trailing slash) - in your case it should be http://www.mydomain.com/cpg1.2.1_standalone

GauGau

P.S. Any special reason for not giving the actual link to your homepage, so we can have a look?
Logged

yannlemerle

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
didn't work
« Reply #2 on: April 12, 2004, 04:40:11 pm »

"modify config" is one of feature I get an error message when I submit.

link to the gallery
http://www.lemerle.com/gallery/cpg1.2.1_standalone/index.php

thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
[Solved]: pb with some features
« Reply #3 on: April 12, 2004, 04:44:49 pm »

then use a tool like phpMyAdmin, find the table cpg11d_config and edit the link_to_ecard accordingly. It this doesn't help, your server is misconfigured and doesn't have the var $PHP_SELF set correctly. Search this board for "$PHP_SELF and config"...

GauGau
Logged

yannlemerle

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
fixed config.php, hot to hardcode the rest?
« Reply #4 on: April 13, 2004, 10:52:11 am »

Hello,

$PHP_SELF is the pb!

I have scanned the forum and fix the config.php by replacing

<form action="$PHP_SELF" method="post">
by
<form action="config.php" method="post">
this page works fine now  :D

Is it possible to hardcode $PHP_SELF in the other pages?

eg, everytime I com accross something like that:
<a href="' . $PHP_SELF . '?op=move&cid1=' . $

What could I replace  $PHP_SELF by? I have tried "page.php" but it doesn't work...says it needs a variable

Thanks,
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
[Solved]: pb with some features
« Reply #5 on: April 13, 2004, 11:00:59 am »

edit include/init.inc.php, find
Code: [Select]
$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];and edit accordingly (use a server var that acutually exists on your server). Please search this board as suggested, this has been explained a few times.

If the server is yours to administer, the best option is to configure the server properly, so that it has the var $PHP_SELF

GauGau
Logged

yannlemerle

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Problem solved
« Reply #6 on: April 13, 2004, 07:58:52 pm »

Problem solved, I edited include/init.inc.php

and replaced
$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];

by

$PHP_SELF = 'http://www.mydomain.com/'.$HTTP_SERVER_VARS['SCRIPT_NAME'];


Many thanks,
Yann
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.