Menu

#370 only serves up FrontPage

Rendering
closed
5
2012-10-11
2004-08-15
No

linux 2.4.23
Apache 2.0.50
PHP 4.3.8
xdebug 1.3.1
phpwiki 1.2.4
Firefox 0.9.3

After untarring in the web server root, and renaming
the directory from phpwiki-1.2.4 to phpwiki, the first
serve of phpwiki/index.php generates 27 warnings
similar to: Warning:
dba_insert(FindPage,a:3:{s:9:"fromlinks";a:1:{s:13:"RecentChanges";i:1;}s:7:"tolinks";a:3:{s:12:"HowToUseWiki";i:1;s:13:"RecentChanges";i:1;s:18:"MoreAboutMechanics";i:1;}s:8:"pagename";s:8:"FindPage";}
): Cannot replace in
/var/www/localhost/htdocs/phpwiki/lib/dbalib.php on
line 121

A reload is clean and looks okay, but all the links on
the new page are directing to a URL similar to
http://:/?WikiWikiWeb. I.E., the server name and the
path has been stripped out. This can be fixed by
editing lib/config.php and setting $ScriptUrl and
$AdminUrl, although this is supposed to be optional
according to the comments in config.php.

After setting $ScriptUrl and $AdminUrl to
"http://piste/phpwiki/index.php" and
"http://piste/phpwiki/admin.php" respectively, the
links on the page now direct to to a URL similar to
http://piste/phpwiki/index.php?WikiWikiWeb, however
clicking on any links only returns the FrontPage,
although the new URL displayed in the address bar is
correct.

It looks like valid db files are being created in /tmp:
-rw-r--r-- 1 apache apache 12288 Aug 14 18:11
wikiarchivedb
-rw-r--r-- 1 apache apache 12298 Aug 14 22:38
wikihitcountdb
-rw-r--r-- 1 apache apache 12288 Aug 14 18:11
wikihottopicsdb
-rw-r--r-- 1 apache apache 23561 Aug 14 18:11 wikilinksdb
-rw-r--r-- 1 apache apache 48585 Aug 14 18:11 wikipagesdb

In addition, after editing admin.php so that $wikiadmin
and $adminpasswd = "foo", setting the browser address
to http://piste/phpwiki/admin.php pops up the username
and password dialog box, but entering foo/foo just
repeats the prompt dialog.

I could not find a $ServerAddress variable in
lib/config.php as mentioned in the INSTALL file.

Other PHP scripts work fine on this system.

My php.ini has been uploaded.

Obviously this must be working somewhere else, what am
I doing wrong with my configuration? What other
information do you need? Would you like the output from
phpinfo()? Should I try phpwiki 1.3.10?

Discussion

  • John Altstadt

    John Altstadt - 2004-08-15

    PHP initialization file

     
  • John Altstadt

    John Altstadt - 2004-08-15

    Logged In: YES
    user_id=1104307

    I just noticed that the access_log file is showing URLs one
    link behind what was just clicked on. For example, if the
    current page is http://piste/phpwiki/index.php?AddingPages
    and I click on the link for WikiWikiWeb, then access_log
    says that the last request was for
    http://piste/phpwiki/index.php?AddingPages.

    Reloading shows the expected page request in access_log,
    although the page actually delivered to the browser is still
    FrontPage.

     
  • John Altstadt

    John Altstadt - 2004-08-15

    Logged In: YES
    user_id=1104307

    Figures that I would find the FAQ in the SourceForge Wiki
    (http://phpwiki.sourceforge.net/phpwiki/FrequentlyAskedQuestions)
    after opening this bug.

    Under PhpWiki Version 1.2 (Release), A 3b did not help,
    although A 3c corrected the problems with only seeing
    FrontPage and the admin login.

    Oddly enough, the access_log is still one URL behind.

    Is there any chance of adding the 3b and/or 3c solutions to
    a 1.2.5 release for those of us running modern versions of
    PHP? I presume the 1.3 stream is already targeting PHP with
    registerglobals OFF.

    If closed bugs disappear off the SourceForge bug page, then
    you may wish to leave this open so that people can see the
    redirect to the FAQ.

     
  • Reini Urban

    Reini Urban - 2005-02-28

    Logged In: YES
    user_id=13755

    Fixed since 1.2.5

    or set register_globals on

     

Log in to post a comment.