1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

When moving XF to a new server, running into class errors

Discussion in 'Troubleshooting and Problems' started by Rizwan Kassim, Jul 5, 2013.

  1. Rizwan Kassim

    Rizwan Kassim Member

    I am moving XF to a new a server, and I have been getting odd errors...

    [Thu Jul 04 21:24:52 2013] [error] [client 12.168.253.4] PHP Fatal error: Class name must be a valid object or a string in /var/www/html/chat/library/XenForo/Search/DataHandler/Abstract.php on line 280, referer: http://**/admin.php?tools/cache-rebuild

    as one example. Any suggestion as to what might be different on this server? I've got elasticsearch enabled; but I seem to have the same issue even when ES is disabled or removed.

    PHP 5.2.17 (cli) (built: Mar 1 2012 16:36:14)
    becomes
    PHP 5.3.25 (cli) (built: May 12 2013 16:33:12)
     
  2. xf_phantom

    xf_phantom Well-Known Member

    Do you have/had any custom addons with a search feature?
    It seems that there's still a search hander from an old addon registered.

    Maybe it's your db backup? Is it a old backup?
    I had an client who used a old db backup(with some installed addons) but the current filebackup hadn't the addon files, and he had run into similar problems.


    Could you post the whole error message?
     
  3. Kier

    Kier XenForo Developer Staff Member

    I'm afraid there just isn't enough information here for us to be able to act. Would you please post the entire error message including the stack trace, and any additional information that might be of use to us in working out what is going wrong?
     
  4. Rizwan Kassim

    Rizwan Kassim Member

    That's all I had to see; there wasn't anything else available to me. I scped the entire dir over and a mirror of the db; so I'd be surprised if there were any file differences.

    I just realized I had disabled Forumrunner badly by moving the plugin dir out of the directory. Checking to see if that was it.
     
  5. Rizwan Kassim

    Rizwan Kassim Member

    Hmm.

    Fatal error: Class 'vw_Hard_Core' not found in /var/www/html/chat/library/vw/XenForo/Search/DataHandler/Base.php on line 57

    This is after Xenforo is uninstalled. Looks like the beta might still attach something? After deleting the plugin files in library (with it already installed) I get t

    [Fri Jul 05 09:49:51 2013] [error] [client 208.105.5.30] PHP Fatal error: Class name must be a valid object or a string in /var/www/html/chat/library/XenForo/Search/DataHandler/Abstract.php on line 280,

    No additional error message to show; nothing gets stored in the server logs component.
     
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    You removed files during your upgrade. Specifically the /vw/Hard/Core.php. I believe that is VaultWiki. Try uploading that file again.
     
  7. Rizwan Kassim

    Rizwan Kassim Member

    I think that's an artifact from a previous beta version. Where does it insert it's 'hooks' in so I can remove it manually?
     
  8. Jeremy

    Jeremy XenForo Moderator Staff Member

    I do not use the add-on; so I cannot help. Attempt to upload the latest files to fix the problem. That may fix it for you. (The search handler is looking for that file)
     
  9. Rizwan Kassim

    Rizwan Kassim Member

    How can I modify what the search handler looks for?
     
  10. Jeremy

    Jeremy XenForo Moderator Staff Member

    You would have to rewrite the portion of code in the Search handler. At this point, if uploading didn't fix your issue, it's best to get support from the add-on author.
     
  11. Rizwan Kassim

    Rizwan Kassim Member

  12. Rizwan Kassim

    Rizwan Kassim Member

Share This Page