index.php fehlt in der printOpenQuestions()

Please report bugs here!

Moderator: Thorsten

Post Reply
itebob
Posts: 59
Joined: Thu May 24, 2007 9:36 am

index.php fehlt in der printOpenQuestions()

Post by itebob »

in der function printOpenQuestions() in der Faq.php fehlt ndex.php-Zeichenfolge in der Zeile
$output .= sprintf('<td valign="top"><a href="index.php ?%saction=add&question=%d&cat=%d">%s</a></td>',
phpMyFAQ 2.0.0; Apache/1.3.37 (Unix) mod_gzip/1.3.26.1a mod_ssl/2.8.28 OpenSSL/0.9.7e-p1;
PHP Version 5.1.6; Mysql 4.1.22; Webserver Interface CGI
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

nö, die braucht man da nicht, es wird alles an die aktuelle Adresse angehängt.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
itebob
Posts: 59
Joined: Thu May 24, 2007 9:36 am

Post by itebob »

in dieser Konfiguration
phpMyFAQ 2.0.2
Windows XP-Professionell
Apache 2.2.4
PHP Version 5.2.2
mysql-5.0.37-win32.zip
funktioniert der Link aber erst, wenn ich die index.php dort explizit definiere :roll:
phpMyFAQ 2.0.0; Apache/1.3.37 (Unix) mod_gzip/1.3.26.1a mod_ssl/2.8.28 OpenSSL/0.9.7e-p1;
PHP Version 5.1.6; Mysql 4.1.22; Webserver Interface CGI
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

wie sieht denn der Link bei dir aus?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
itebob
Posts: 59
Joined: Thu May 24, 2007 9:36 am

Post by itebob »

so
http://localhost/faq/?action=add&question=1&cat=1
und die Seite wird nicht gefunden.
phpMyFAQ 2.0.0; Apache/1.3.37 (Unix) mod_gzip/1.3.26.1a mod_ssl/2.8.28 OpenSSL/0.9.7e-p1;
PHP Version 5.1.6; Mysql 4.1.22; Webserver Interface CGI
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

wie sieht denn dein DirectoryIndex deines Apachen aus?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
itebob
Posts: 59
Joined: Thu May 24, 2007 9:36 am

Post by itebob »

Hallo,
default-Directory wrote:<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>
und ausserdem habe ich in der httpd.conf wegen AllowOverride FileInfo für Riwrite-Funktionalität diesen Abschnitt hier
<Directory "C:/Programme/ApacheServer/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#

# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride FileInfo

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>


#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.htm, index.php, main.html, index.html.de, index.html.de.en, index.html, main.html
</IfModule>
eingefügt. Dazu muss ich sagen, dass meine Apache-Kenntnisse ziemlich rudimentär sind.
phpMyFAQ 2.0.0; Apache/1.3.37 (Unix) mod_gzip/1.3.26.1a mod_ssl/2.8.28 OpenSSL/0.9.7e-p1;
PHP Version 5.1.6; Mysql 4.1.22; Webserver Interface CGI
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,
itebob wrote:

Code: Select all

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.htm, index.php, main.html, index.html.de, index.html.de.en,  index.html, main.html
</IfModule>
mach mal die Kommars raus, die sind da definitiv falscn.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
itebob
Posts: 59
Joined: Thu May 24, 2007 9:36 am

Post by itebob »

Danke - es funktioniert so auch ohne Änderung in der printOpenQuestions().
hab' was dazu gelernt :)
phpMyFAQ 2.0.0; Apache/1.3.37 (Unix) mod_gzip/1.3.26.1a mod_ssl/2.8.28 OpenSSL/0.9.7e-p1;
PHP Version 5.1.6; Mysql 4.1.22; Webserver Interface CGI
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

bitte. Normalerweise sollte aber da der Apache meckern. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply