Missing File after update to 2.5.x from 2.0.x

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
stefko
Posts: 3
Joined: Thu Aug 20, 2009 4:24 am

Missing File after update to 2.5.x from 2.0.x

Post by stefko »

After login as admin, I click the Administration Link and receive this error:

Code: Select all

phpMyFAQ warning [2]: include(/hsphere/local/home/user/domain/faq/inc/CurrentUser.php): failed to open stream: No such file or directory in autoLoader.php on line 42

phpMyFAQ warning [2]: include(): Failed opening '/hsphere/local/home/user/domain/faq/inc/CurrentUser.php' for inclusion (include_path='.:/hsphere/shared/apache/libexec/php5ext/php/') in autoLoader.php on line 42

PMF Autoloader: unable to define 'PMF_CurrentUser' as a class/interface.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Missing File after update to 2.5.x from 2.0.x

Post by Thorsten »

Hi,

how did you do the update?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
stefko
Posts: 3
Joined: Thu Aug 20, 2009 4:24 am

Re: Missing File after update to 2.5.x from 2.0.x

Post by stefko »

Manually update, delete all files except those listed in instructions, upload new files and run update.php
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Missing File after update to 2.5.x from 2.0.x

Post by Thorsten »

Hi,

poste doch mal bitte aus der index.php so die Zeilen 80 bis 100 hier.

Danke!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
stefko
Posts: 3
Joined: Thu Aug 20, 2009 4:24 am

Re: Missing File after update to 2.5.x from 2.0.x

Post by stefko »

Below are lines 80 - 100 of index.php

Code: Select all

//
$action = PMF_Filter::filterInput(INPUT_GET, 'action', FILTER_SANITIZE_STRING, 'main');

//
// Authenticate current user
//
$auth        = null;
$error       = '';
$faqusername = PMF_Filter::filterInput(INPUT_POST, 'faqusername', FILTER_SANITIZE_STRING);
$faqpassword = PMF_Filter::filterInput(INPUT_POST, 'faqpassword', FILTER_SANITIZE_STRING);
if (!is_null($faqusername) && !is_null($faqpassword)) {
    $user = new PMF_User_CurrentUser();
    if ($faqconfig->get('main.ldapSupport')) {
        $authLdap = new PMF_Auth_AuthLdap();
        $user->addAuth($authLdap, 'ldap');
    }
    if ($user->login($faqusername, $faqpassword)) {
        if ($user->getStatus() != 'blocked') {
            $auth = true;
        } else {
            $error = $PMF_LANG["ad_auth_fail"]." (".$faqusername." / *)";
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Missing File after update to 2.5.x from 2.0.x

Post by Thorsten »

Hi,

that's okay.

Please search in all files for "PMF_CurrentUser" because your version tries to load that class. But this class doesn't exist anymore, even in your code it's PMF_User_CurrentUser...

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