Page 1 of 2 12 LastLast
Results 1 to 15 of 24

Thread: Fatal error - moved to new server !

  1. #1
    Join Date
    Sep 2004
    Location
    West Yorkshire, UK
    Posts
    43

    Angry Fatal error - moved to new server !

    Hi,

    I've got a big problem and don't know how to sort it out.

    I was using web hosting before and the IndexU script worked just fine, but my hosting firm emailed me and said that i was using too much proccesor time and would either have to remove some of my web pages (scripts) or move to a dedicated server.

    I couldn't afford the dedicated server they had to offer, so i thought it would be better to back up everything and move to 1and1.co.uk dedicated server.

    1and1 don't use CPANEL they use something called PLESK.

    I couldn't just use the back-up i'd saved from my old hosting because the back-up was done with CPANEL and my new server wont let you upload a back-up that was made using CPANEL.

    Anyway i've managed to upload the files and databases to my server now, but INDEXU dosn't work. I've even tried installing INDEXU from fresh, but it still doesn't work.

    Can anyone help me ?
    This is the problem i'm getting :-

    Fatal error: Call to a member function on a non-object in /home/httpd/vhosts/netaddition.com/httpdocs/links/lib/category.class.php on line 336

    I get this error the second i click on either a category or a link.
    BTW i also can't log-in to either admin or as a user. The log-in pages just pop back up as soon as i try to log-in.

  2. #2
    Join Date
    Sep 2004
    Posts
    162

    Default

    Looks like its working on your site now? Did you fix it?


    brickholius

  3. #3
    Join Date
    Sep 2004
    Location
    West Yorkshire, UK
    Posts
    43

    Default

    The front page looks like it's working, but did you try clicking on any links ?
    I also can't log-in even using the right username and password.
    I can't get to admin because i can't log-in.

  4. #4
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    if you are using 3.2, that error is related to the GetCategoryPath function.

    you need to run the Category path update from the Admin menu.

    can you login in from the main (indexu) page of your site - using the login on the left?
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  5. #5
    Join Date
    Sep 2004
    Location
    West Yorkshire, UK
    Posts
    43

    Default

    No, i can't log-in.

    I've had a look in phpmyadmin to make sure i'm using the right username and password and i still can't log-in. I've also tried re-setting the password back to what it is when you first install and that wont let me in either.

    I just don't get it. I can't work out what is wrong.
    You would think that nothing would work, but the main page does. It's just all the links and the log-in that don't.

  6. #6
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    in phpmyadmin make sure that the admin is set as follows:
    • status= 1
    • group_id=0
    if that does not work, find the GetUserAuthentication function in the users.class.php file

    what you want to do is comment out all the existing code and add one line so that this will allow you to temporarily enter to you admin control panel. So:

    • add a \* on the first line (after function GetUserAuthentication($group_id = 100) {
      )
    • find the last } for the function (about 26 lins down) and add a add a */
    • just after that add return 1
    • You will want to reverse the changes to GetUserAuthentication above after you finish with the admin control panel.

    obviously not a long term solution but it will allow you to get you site back running.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  7. #7
    Join Date
    Sep 2004
    Location
    West Yorkshire, UK
    Posts
    43

    Default

    Where and how ?

    PHP Code:
    // ----------------------------------

      
    function GetUserAuthentication($group_id 100) {


        global 
    $COOKIE_USER_AUTHENTICATED$COOKIE_USERNAME$COOKIE_PASSWORD;

        if(empty(
    $COOKIE_USER_AUTHENTICATED) or empty($COOKIE_USERNAME) or empty($COOKIE_PASSWORD))        
          return 
    1
          
          else {

          
    $query "select password, group_id from $this->table_name where username='$COOKIE_USERNAME' and status = 1";
          
    $result $this->db_connect->Execute($query);    
          if(
    $result)  { 
            
    $pwd $result->Fields("password"); 
            
    $gid $result->Fields("group_id"); 

             if (
    $group_id == 100) {
              if(
    $COOKIE_USER_AUTHENTICATED && $COOKIE_PASSWORD == $pwd) return 0;
              else return 
    1;
            }
            else {
              if(
    $COOKIE_USER_AUTHENTICATED && $COOKIE_PASSWORD == $pwd && $group_id == $gid) return 0;
              else return 
    1;
            }
          }
          else return 
    1;
        }
      }




      
    // method to change user profile
      // input :    $status = "display_form"
      //                      "process_form"
      //            $username
      // ------------------------------------------ 

  8. #8
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    [QUOTE]
    function GetUserAuthentication($group_id = 100) {
    /*

    global $COOKIE_USER_AUTHENTICATED, $COOKIE_USERNAME, $COOKIE_PASSWORD;

    if(empty($COOKIE_USER_AUTHENTICATED) or empty($COOKIE_USERNAME) or empty($COOKIE_PASSWORD))
    return 1;

    else {

    $query = "select password, group_id from $this->table_name where username='$COOKIE_USERNAME' and status = 1";
    $result = $this->db_connect->Execute($query);
    if($result) {
    $pwd = $result->Fields("password");
    $gid = $result->Fields("group_id");

    if ($group_id == 100) {
    if($COOKIE_USER_AUTHENTICATED && $COOKIE_PASSWORD == $pwd) return 0;
    else return 1;
    }
    else {
    if($COOKIE_USER_AUTHENTICATED && $COOKIE_PASSWORD == $pwd && $group_id == $gid) return 0;
    else return 1;
    }
    }
    else return 1;
    }
    */
    return 1;

    }
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  9. #9
    Join Date
    Sep 2004
    Location
    West Yorkshire, UK
    Posts
    43

    Default

    [QUOTE=esm]
    function GetUserAuthentication($group_id = 100) {
    /*

    global $COOKIE_USER_AUTHENTICATED, $COOKIE_USERNAME, $COOKIE_PASSWORD;

    if(empty($COOKIE_USER_AUTHENTICATED) or empty($COOKIE_USERNAME) or empty($COOKIE_PASSWORD))
    return 1;

    else {

    $query = "select password, group_id from $this->table_name where username='$COOKIE_USERNAME' and status = 1";
    $result = $this->db_connect->Execute($query);
    if($result) {
    $pwd = $result->Fields("password");
    $gid = $result->Fields("group_id");

    if ($group_id == 100) {
    if($COOKIE_USER_AUTHENTICATED && $COOKIE_PASSWORD == $pwd) return 0;
    else return 1;
    }
    else {
    if($COOKIE_USER_AUTHENTICATED && $COOKIE_PASSWORD == $pwd && $group_id == $gid) return 0;
    else return 1;
    }
    }
    else return 1;
    }
    */
    return 1;

    }
    It didn't work.

    I still have problems.

    Has anyone got any advice when using 1and1.co.uk ?
    I'm on a redhat 9 server.

  10. #10
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    I think I made a mistake.
    at the bottom, change

    Code:
    */
    return 1;
    }
    to


    Code:
    */
    return 0;
    }
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  11. #11
    Join Date
    Sep 2004
    Location
    West Yorkshire, UK
    Posts
    43

    Default

    I can now get in to admin, but still have the errors on the pages just off the main page.

    I've run the Update Category Path but it does nothing. It doesn't look like it's updating.

    Found my PHP info :-
    System Linux p15169085.pureserver.info 2.4.25-040218 #1 SMP Wed Feb 18 17:59:29 CET 2004 i686
    Build Date Oct 28 2004 09:31:02
    Configure Command './configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2filter=/usr/sbin/apxs'
    Server API Apache 2.0 Filter
    Virtual Directory Support disabled
    Configuration File (php.ini) Path /etc/php.ini
    Scan this dir for additional .ini files /etc/php.d
    additional .ini files parsed /etc/php.d/imap.ini, /etc/php.d/mysql.ini, /etc/php.d/pgsql.ini
    PHP API 20020918
    PHP Extension 20020429
    Zend Extension 20021010
    Debug Build no
    Thread Safety disabled
    Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2, compress.zlib
    BTW lots of stuff don't work in admin.
    Validate Links doesn't work !
    I have one old link in the database and can't do anything with it.
    Last edited by 12noon; 11-23-2004 at 08:55 PM.

  12. #12
    Join Date
    Sep 2004
    Location
    West Yorkshire, UK
    Posts
    43

    Default

    I let a friend have a look at my 1and1 dedicated server, to see if he could work out why my directory didn't work. BTW i also have other stuff that doesn't work now i've moved to a new server.
    Anyway this is what he said :-

    hi, I think that I know what is going on, I've similar problem... it's because of windows filesystem isn't compatible with a Linux, I had similar problem once, and solved it by installing software from the scratch and later installing old database(it was with our forum). The problem is that I don't have fast connection and couldn't upload scrtips myself, can you tell me when you be online so you could upload all necessary archives to hosting, including your backup archive(it's important to upload archive and not single files) from old hosting? once I have them, I could log on through SSH and unpack them in linux system.
    So it's the file system ?

    My old hosting also used Red Hat Linux though, so you'd think it would be the same because my new server also uses Red Hat.

    Must be because i'm on Windows XP and used the back-up i made to upload each file one by one via FTP.

    Anyone got any other advice ?

  13. #13
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default

    Not sure, but don't forget this error on your index:
    Warning: fopen(cache/index_.html): failed to open stream: Permission denied in /home/httpd/vhosts/netaddition.com/httpdocs/links/index.php on line 199

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/httpd/vhosts/netaddition.com/httpdocs/links/index.php on line 200

    Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/netaddition.com/httpdocs/links/index.php on line 201

    Settings seems to be wrong, too

    Frank

  14. #14
    Join Date
    Sep 2004
    Location
    West Yorkshire, UK
    Posts
    43

    Default

    OK, we have been trying for ages now and still can't get the script to work on this new server (1and1.co.uk).

    We have installed a fresh version of indexu32 and added a fresh database, but still get the same errors.

    We can't log-in and the links don't work.

    Can anyone tell me what modules are used for php/apache ?

    My freind says he will add any modules i might need that the script uses, but we need to find out what these modules are ???

  15. #15
    Join Date
    Dec 2004
    Posts
    22

    Default

    Similar problems

    everything seems to work fine except when I click details for a listing - I get this:

    Fatal error: Call to a member function on a non-object in /home/httpd/vhosts/mywebsite.com/httpdocs/lib/category.class.php on line 336

    Any suggestions?

Similar Threads

  1. Changed my server - script error
    By 12noon in forum v5.x
    Replies: 2
    Last Post: 10-09-2004, 07:09 AM
  2. Fatal Error: call to undefined function
    By somxai in forum v5.x
    Replies: 2
    Last Post: 04-22-2004, 06:32 PM
  3. Replies: 5
    Last Post: 04-20-2004, 09:31 AM
  4. Fatal Error
    By Rob Picken in forum v5.x
    Replies: 3
    Last Post: 09-08-2003, 06:24 AM
  5. Replies: 4
    Last Post: 06-11-2003, 04:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •