Error message when trying to install

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Jimmyfr
Posts: 12
Joined: Fri Aug 14, 2009 5:53 pm

Error message when trying to install

Post by Jimmyfr »

Hi

I wonder if you csn help me. I am trying to install PHPMYFAQ, but I am having a problem installing it. I get this error message:

Warning: require_once(/home/oils/public_html/inc/autoLoader.php) [function.require-once]: failed to open stream: No such file or directory in /home/oils/public_html/install/installer.php on line 35

Fatal error: require_once() [function.require]: Failed opening required '/home/oils/public_html/inc/autoLoader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/oils/public_html/install/installer.php on line 35

I've installed the software on two other domains on the same server without a problem, so can't understand this problem. This is the lates version of the software.

My server is running: PHP version 5.2.9 MySQL version 5.1.30

Thanks in advance
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Error message when trying to install

Post by Thorsten »

Hi,

your include path is broken on that machine.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Jimmyfr
Posts: 12
Joined: Fri Aug 14, 2009 5:53 pm

Re: Error message when trying to install

Post by Jimmyfr »

Hi

Thanks for getting back to me.

I found the problem. I had mistakenly enabled 'force lower case' in my FTP client when uploading the script. As many of your file names are in mixed case eg. AutoLoader.php, the file was not found. Perhaps you could think about making all of your file names lower case in future releases?

Can you help me with another small problem? Can you tell me how I can list the "Records in this category List" in alphabetical order? Also the Tags too.

Thanks in advance for your responce and also for this excellent FAQ script!
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Error message when trying to install

Post by Thorsten »

Hi,
Jimmyfr wrote:I found the problem. I had mistakenly enabled 'force lower case' in my FTP client when uploading the script. As many of your file names are in mixed case eg. AutoLoader.php, the file was not found. Perhaps you could think about making all of your file names lower case in future releases?
no, just because the file names are equal to the class names (class PMF_Logging is in the file Logging.php).
Jimmyfr wrote:Can you help me with another small problem? Can you tell me how I can list the "Records in this category List" in alphabetical order? Also the Tags too.
You can set the ordering for records in the configuration. The tags should be in alphabetically order.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Jimmyfr
Posts: 12
Joined: Fri Aug 14, 2009 5:53 pm

Re: Error message when trying to install

Post by Jimmyfr »

Yes I tried that, but it didn't make any difference. The order is still date order.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Error message when trying to install

Post by Thorsten »

Hi,
Jimmyfr wrote:Yes I tried that, but it didn't make any difference. The order is still date order.
for which one? Records oder tags?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Jimmyfr
Posts: 12
Joined: Fri Aug 14, 2009 5:53 pm

Re: Error message when trying to install

Post by Jimmyfr »

Neither. I changed config to order by title, but they are still not in alphabetical order.

Can I change the php somewhere?
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Error message when trying to install

Post by Thorsten »

Hi,

for the records:

inc/Faq.php, line 2592:

Change

Code: Select all

                fd.id';
to

Code: Select all

                fd.thema';
For tags:

inc/Tags.php, line 472:

Change

Code: Select all

                t.tagging_name = '%s'",
to

Code: Select all

                t.tagging_name = '%s'
            ORDER BY
                t.tagging_name",
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Jimmyfr
Posts: 12
Joined: Fri Aug 14, 2009 5:53 pm

Re: Error message when trying to install

Post by Jimmyfr »

Hi

Excellent that worked perfectly for the faq.php list.

It didn't work for the tags however, but that's not so much of a problem. This is what I did:

I changed this:

function getRecordsByTagName($tagName)
{
if (!is_string($tagName)) {
return false;
}

$query = sprintf("
SELECT
d.record_id AS record_id
FROM
%sfaqdata_tags d, %sfaqtags t
WHERE
t.tagging_id = d.tagging_id
AND t.tagging_name = '%s'",
SQLPREFIX,
SQLPREFIX,
$tagName
);

for this:

function getRecordsByTagName($tagName)
{
if (!is_string($tagName)) {
return false;
}

$query = sprintf("
SELECT
d.record_id AS record_id
FROM
%sfaqdata_tags d, %sfaqtags t
WHERE
t.tagging_id = d.tagging_id
AND t.tagging_name = '%s'
ORDER BY
t.tagging_name",
SQLPREFIX,
SQLPREFIX,
$tagName
);

Was that correct?

Thanks again anyway.
Jimmyfr
Posts: 12
Joined: Fri Aug 14, 2009 5:53 pm

Re: Error message when trying to install

Post by Jimmyfr »

Hi Sorry

Also what would I change in inc.Category.php to get the 'Records in this category' into Alphabetical order?

Thanks
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Error message when trying to install

Post by Thorsten »

Hi,
Jimmyfr wrote:Also what would I change in inc.Category.php to get the 'Records in this category' into Alphabetical order?
this is what I posted 3 posts before. It's not in inc/Category.php.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Jimmyfr
Posts: 12
Joined: Fri Aug 14, 2009 5:53 pm

Re: Error message when trying to install

Post by Jimmyfr »

Hi

Sorry I can't see the code above to change the categories can you repost it please.

The code you gave for tags doesn't work.

Thanks in advance :lol:
Jimmyfr
Posts: 12
Joined: Fri Aug 14, 2009 5:53 pm

Re: Error message when trying to install

Post by Jimmyfr »

Hi

Sorry, Tags are now working fine. Thank you.

All I need now is to get the 'Records in this category' to go into alphabetical order.

Thanks
Jimmyfr
Posts: 12
Joined: Fri Aug 14, 2009 5:53 pm

Re: Error message when trying to install

Post by Jimmyfr »

Hi

Sorry, perhaps my request wasn't clear.

When you go to a FAQ, there is a list on the right hand side of the screen of other FAQ's in that category. How can I put this list into Alphabetical order ( a, b, c, d etc)? At the moment the newest FAQ's are added to the bottom of the list.

I have tried changing the configuration, but it didn't change the order of this list.

I hope that is clearer, sorry for any confusion.

Thank you
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Error message when trying to install

Post by Thorsten »

Hi,

ah, okay.

Open inc/Faq.php, goto line 2592 and change the code

Code: Select all

                fd.id';
to

Code: Select all

                fd.thema';
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply