phpMyFAQ linking its self to index files in sub directories

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
jura
Posts: 4
Joined: Sat Dec 03, 2005 2:27 pm
Contact:

phpMyFAQ linking its self to index files in sub directories

Post by jura »

Hi thanks for developing the script much apreciated. However I have a bit of a problem It appears that a phpmyfaq template file has linked its self to index files in other directories of my site IE:-

When I open http://photofxr.co.uk/jura_photos/maps_ ... index.html

the script for this file on server is:-


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>English Counties historical maps</title>
<meta name="generator" content="Adobe Photoshop(R) CS Web Photo Gallery">
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="*,100" frameborder="no" border="0" framespacing="0">
<frame src="pages/126.html" name="TopFrame" scrolling="auto" marginwidth="0" marginheight="0">
<frame src="ThumbnailFrame.html" name="BottomFrame" scrolling="auto" marginwidth="0" marginheight="0">
</frameset>
<noframes><body>
Viewing this page requires a browser capable of displaying frames.
</body></noframes>
</html>


The script that is generated opend up in the users browser I use Ie 6

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401- ... /loose.dtd">
<!-- saved from url=(0073)http://photofxr.co.uk/jura_photos/maps_ ... index.html -->
<HTML lang=en xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Photo Fixer & Jura Photos - powered by phpMyFAQ 1.5.4</TITLE>
<META http-equiv=Content-Type
content="application/xhtml+xml; charset=iso-8859-1">
<META content="Photo Fixer & Jura Photos - powered by phpMyFAQ 1.5.4"
name=title>
<META content="" name=description>
<META
content="jura photos fixer images forum gallery maps charts old historical restoration whisky contact isle blog free classifids safty securaty "
name=keywords>
<META content="Photo Fixer" name=author>
<META content="Photo Fixer" name=publisher>
<META content="(c) 2001 - 2005 phpMyFAQ Team" name=copyright>
<META content=iso-8859-1 name=Content-Language>
<META content="INDEX, FOLLOW" name=robots>
<META content="7 days" name=revisit-after>
<META content=true name=MSSmartTagsPreventParsing>
<STYLE type=text/css media=screen>@import url( template/style.css );
@import url( template/colors.css );
</STYLE>

<STYLE type=text/css media=print>@import url( template/print.css );
</STYLE>

<SCRIPT src="" type=text/javascript></SCRIPT>
<LINK href="template/favicon.ico" type=image/x-icon rel="shortcut icon"><LINK
href="template/favicon.ico" type=image/x-icon rel=icon><LINK
title="News RSS Feed" href="feed/news/rss.php" type=application/rss+xml
rel=alternate><LINK title="TopTen RSS Feed" href="feed/topten/rss.php"
type=application/rss+xml rel=alternate><LINK title="Latest FAQ Records RSS Feed"
href="feed/latest/rss.php" type=application/rss+xml rel=alternate>
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY dir=ltr>
<DIV id=wrapper1>
<DIV id=wrapper2><!-- start headers -->
<DIV class=header id=header>
<H1><A title="Photo Fixer & Jura Photos"
href="http://photofxr.co.uk/jura_photos/maps_ ... es/">Photo
Fixer & Jura Photos</A></H1>
<UL>
<LI><A
href="http://photofxr.co.uk/jura_photos/maps_ ... Contact</A>

<LI><A
href="http://photofxr.co.uk/jura_photos/maps_ ... l">Help</A>

<LI><A
href="http://photofxr.co.uk/jura_photos/maps_ ... html">Open
questions</A>
<LI><A
href="http://photofxr.co.uk/jura_photos/maps_ ... .html">Ask
question</A>
<LI><A
href="http://photofxr.co.uk/jura_photos/maps_ ... .html">Add
content</A>
<LI><A
href="http://photofxr.co.uk/jura_photos/maps_ ... >Search</A>
</LI></UL></DIV><!-- end headers --><!-- start columns -->
<DIV class=columns><!-- start left sidebar -->
<DIV class="leftcolumn sidebar" id=sidebar-left>
<DIV class=leftpadding>
<H2 class=invisible>Navigation</H2><!-- start categories -->
<DIV class=content>
<DIV id=categories>
<UL>
<LI class=home><A
href="http://photofxr.co.uk/jura_photos/maps_ ... l">Home</A>

<LI><A
href="http://photofxr.co.uk/jura_photos/maps_ ... html">Show
all categories</A>
<LI><A
title="A collection of old and historical maps and charts for public refferance"
href="http://photofxr.co.uk/jura_photos/maps_ ... html">Maps
and charts</A>
<LI><A
href="http://photofxr.co.uk/jura_photos/maps_ ... Sitemap</A>
</LI></UL></DIV></DIV><!-- end categories --><!-- start search box -->
<DIV class=content>
<DIV id=search>
<FORM action=search.html method=post><LABEL for=suchbegriff>Search</LABEL>
<INPUT class=inputfield id=suchbegriff alt=search... size=18
name=suchbegriff><BR><INPUT class=submit type=submit value=Go name=submit>
</FORM></DIV></DIV><!-- end search box --><!-- start language selection box -->
<DIV class=content>
<DIV id=langform>
<FORM action=/index.php? method=post><LABEL for=language>change language</LABEL>
<SELECT class=language id=language size=1 name=language> <OPTION
value=ar>Arabic</OPTION> <OPTION value=zh>Chinese (Simplified)</OPTION>
<OPTION value=tw>Chinese (Traditional)</OPTION> <OPTION
value=cs>Czech</OPTION> <OPTION value=da>Danish</OPTION> <OPTION
value=nl>Dutch</OPTION> <OPTION value=en selected>English</OPTION> <OPTION
value=fi>Finnish</OPTION> <OPTION value=fr>French</OPTION> <OPTION
value=de>German</OPTION> <OPTION value=el>Greek</OPTION> <OPTION
value=he>Hebrew</OPTION> <OPTION value=hu>Hungarian</OPTION> <OPTION
value=id>Indonesian</OPTION> <OPTION value=it>Italian</OPTION> <OPTION
value=ja>Japanese</OPTION> <OPTION value=ko>Korean</OPTION> <OPTION
value=lv>Latvian</OPTION> <OPTION value=nb>Norwegian Bokmål</OPTION> <OPTION
value=pl>Polish</OPTION> <OPTION value=pt>Portuguese</OPTION> <OPTION
value=ro>Romanian</OPTION> <OPTION value=ru>Russian</OPTION> <OPTION
value=sr>Serbian</OPTION> <OPTION value=sl>Slovenian</OPTION> <OPTION
value=es>Spanish</OPTION> <OPTION value=sv>Swedish</OPTION> <OPTION
value=tr>Turkish</OPTION> <OPTION value=vi>Vietnamese</OPTION></SELECT> <BR><INPUT class=submit type=submit value=Go name=submit> </FORM></DIV></DIV><!-- end -->
<DIV class=content>
<DIV id=useronline>0 Users online </DIV></DIV></DIV></DIV><!-- end left sidebar --><!-- start right sidebar --><!-- end right sidebar --><!-- start main content -->
<DIV class=centercolumn>
<DIV class=centerpadding>
<DIV class=main-content id=main><!-- begin news -->
<DIV id=news>
<H2>Photo Fixer & Jura Photos News&nbsp;<A
href="http://photofxr.co.uk/jura_photos/maps_ ... ws/rss.php"
target=_blank><IMG height=16 alt=RSS src="" width=28></A></H2>
<H3><A name=news_3>Photo Fixer</A></H3>
<DIV class=block>Graphics and image restoration services with a no fix no fee
policy in plain english <BR>Info: <A
href="http://photofxr.co.uk/Photofxr_example/" target=_blank>Photo Fixer home
page</A></DIV>
<DIV class=date>2005-12-02 19:01</DIV>
<P align=center>There are 0 records
online</P></DIV><!-- end news --></DIV></DIV></DIV><!-- end main content --></DIV><!-- end columns -->
<DIV class=clearing></DIV><!-- start footer -->
<DIV class=footer id=footer><!-- please do not remove the following line -->
<P id=copyrightnote>powered by <A href="http://www.phpmyfaq.de/"
target=_blank>phpMyFAQ</A> 1.5.4</P></DIV><!-- end footer --><!-- start debug messages --><!-- end debug messages --></DIV></DIV></BODY></HTML>


Any sergestions thanks Jura
jura
Posts: 4
Joined: Sat Dec 03, 2005 2:27 pm
Contact:

Removed script

Post by jura »

Hi Just an update

I removed the template files for phpmyfaq to try opening the other index files to see what happens
I was unable to open the index files of the sub directories as they were looking for the template files that had atatched themselves to all the files in the site named index.html

I have removed phpmysql from the site but I was unable to remove some of the files as they have asociated themselves with my server (apatcie) and I do not have the authority to remove them

I will try the script in my backup server to see if I have the same prob I like the script if I can sort the problem out it looks good

many thanks
Jura
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Unable to help you

Post by matteo »

Sorry, I can't understand your issues. If you remove PMF templates, PMF doesn't work at all!
Within the templates there are special PMF tags that are filled up at run-time with the related PMF data: if you remove them:
1. you can't see any PMF data
2. you'll see many errors claiming PMF templates

Please, try to re-setup a default PMF installation upon your site without changing anything in order to better understand your questions :wink:
jura
Posts: 4
Joined: Sat Dec 03, 2005 2:27 pm
Contact:

re:- matteo

Post by jura »

Thanks for your reply

I may have not explained things clearly and you may have misunderstood me

phpMYfaq works fine with no problems when it is the only script installed on my server

/faq

If I have other directories in the root directory ie


index.html
/faq/
/jura_photos/index.html
/jura_photos/ardlussa/index.html


The index.html files

index.html
/jura_photos/index.html
/jura_photos/ardlussa/index.html

not part of phpmyfaq and in separate directories are opening the phpmyfaq template file
in the /faq/ directory

I removed the phpmyfaq templates to see if the

index.html
/jura_photos/index.html
/jura_photos/ardlussa/index.html

would open as they should without loading the phpmyfaq template
however they were still looking for the template files for phpmyfaq

As I am on a rather slow dialup 29kbs and did not whant to remove phpmyfaq fully from my server
I shall import phpmyfaq onto my backup site that is empty at the moment and see if I still have the same problem

Many thanks Jura

PS have a look at the html code in my first posting
the bottom script shows what is generated from the index.html in the first script in internet explorer 6
if that is of any help
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

PMF deploy

Post by matteo »

Thanks to the picture you provided about your files&folders deployment I've some ideas about your strange behaviour: in my opinion the issue is strictly related with a mis-configuration of the .htaccess file provided with PMF in order to use mod_rewrite support.
One of its rules is:

Code: Select all

# start page
RewriteRule index.html$ index.php [PT]
This rule above could give the depicted behaviour IF you omiit this rule below:

Code: Select all

# the path to your phpMyFAQ installation
RewriteBase /phpmyfaq/
obviuosly in your case it must be modified in:

Code: Select all

# the path to your phpMyFAQ installation
RewriteBase /faq/
In order to give us the possibility of some more investigation please provide your .htaccess eventually inside the root folder and in the "/faq" folder (please use code tag).
jura
Posts: 4
Joined: Sat Dec 03, 2005 2:27 pm
Contact:

Re matteo

Post by jura »

Thanks I see what you mean I should have sussed that out
must have being half asleep when I was installing phpmyfaq and read the instructions properlyI think it should solve the problem

sorry for not explaining the prob clearly in the first place

many thanks Jura
Post Reply