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

XF 1.3 Getting Fatal Error After Add On, Even After Deleting Add On Files

Discussion in 'Troubleshooting and Problems' started by MQK8, Jul 29, 2014.

  1. MQK8

    MQK8 Active Member

    Okay, I'm a noob but will try to explain this.

    I FTP'd the widget framework add on files to my directory to install like I usually do on all my addons, then went to my ACP to install the XML file, during that process it threw a fatal error. So I restored my site back to before doing this add on. So I was back to normal but when I went to delete the wideframework addon in my ACP area, it says files are not there to delete, please add files. So I went back to my FTP client and installed the widget framework files so I can delete this and now I get this error on my site

    Fatal error: Class 'WidgetFramework_Route_Filter_PageX' not found in /home/rocky50/public_html/mysite.com/library/WidgetFramework/Listener.php on line 236

    I just want to delete this addon now but now I have an error on my site. What do I need to do. Stuck like chuck.

    Thanks
     
  2. MQK8

    MQK8 Active Member

    Okay,
    I restored my site again and its back online, but I have all these errors showing from this widgetframwork add on.. I know if I try to delete it, it will tell me files are not there to delete, please install files to delete, then when I add these files via FTP, it will throw an error and my site will be back off line. So anyone know what I need to do?

    Thanks
     
  3. MQK8

    MQK8 Active Member

    I have 34 server error logs showing in my control panel of
    Fatal error: Class 'WidgetFramework_Route_Filter_PageX' not found
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    You will need to re upload the files to the correct location, then perform an uninstall.
     
  5. MQK8

    MQK8 Active Member

    So that's why I did wrong the first time I tried this, I installed ( FTP'd) the files to the wrong location? I uploaded them to the directory my xenforo is in just like all the other add ons, which is the correct location on this one?
     
  6. Mike

    Mike XenForo Developer Staff Member

    Possibly, it's really hard to say. If having the files in place breaks things, you should contact the author. At a pinch, you can disable add-ons via config.php (http://xenforo.com/help/disable-addons-config-php/) to remove it and then remove the added config.php line.
     
  7. MQK8

    MQK8 Active Member

    Hi Mike
    Okay, let me ask you a silly question.. Where do I find this > library/config.php. to add the string of text to.. I'm still learning..
    Thanks
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    That is the relative path of it, to where your forum is installed.
     
  9. MQK8

    MQK8 Active Member

    So I assume this is going in my cpanel to file manager and finding the config.php file and using code editor to add the text at the top, right under where it says php? If so I tried that and no luck :(
     
  10. Sheratan

    Sheratan Well-Known Member

    It usually /home/yourcpanelusername/public_html/library/config.php if you put xenforo in public_html directory

    Put $config['enableListeners'] = false; under <?php so it looks like:

    Code:
    <?php
    
    $config['db']['host'] = 'localhost';
    
    $config['db']['port'] = '3306';
    
    $config['db']['username'] = 'dbuser';
    
    $config['db']['password'] = 'dbpass';
    
    $config['db']['dbname'] = 'dbname';
    
    ...
    
    $config['enableListeners'] = false;
    
     
  11. MQK8

    MQK8 Active Member

    Oh ok, I was putting the code at top right under the php. I will try that

    Thanks Sheratan
     
  12. MQK8

    MQK8 Active Member

    Hi Sheratan
    Ok I put the code at the bottom like this, this is how my file looks but didn't work

    <?
    $config['db']['host'] = 'localhost';
    $config['db']['port'] = '3306';
    $config['db']['username'] = 'rocky50_xenforo';
    $config['db']['password'] = 'xenforo';
    $config['db']['dbname'] = 'rocky50_xenforo';
    $config['superAdmins'] = '1';
    $config['enableListeners'] = false;
     
  13. MQK8

    MQK8 Active Member

    And does it matter if I use the code editor or use just edit ?
     
  14. MQK8

    MQK8 Active Member

    Okay, just tried all three variations of adding the line of text to the config.php, still cannot delete the widget framework add on..after changing this in my files. Still saying files don't exist. Now what can I try? Or am I not writing the php correct?
    1.
    <?php
    $config['db']['host'] = 'localhost';
    $config['db']['port'] = '3306';
    $config['db']['username'] = 'rocky50_xenforo';
    $config['db']['password'] = 'xenforo';
    $config['db']['dbname'] = 'rocky50_xenforo';

    $config['enableListeners'] = false;

    2.
    <?php
    $config['db']['host'] = 'localhost';
    $config['db']['port'] = '3306';
    $config['db']['username'] = 'rocky50_xenforo';
    $config['db']['password'] = 'xenforo';
    $config['db']['dbname'] = 'rocky50_xenforo';
    $config['superAdmins'] = '1';

    $config['enableListeners'] = false;

    3.
    <?php
    $config['db']['host'] = 'localhost';
    $config['db']['port'] = '3306';
    $config['db']['username'] = 'rocky50_xenforo';
    $config['db']['password'] = 'xenforo';
    $config['db']['dbname'] = 'rocky50_xenforo';
    $config['enableListeners'] = false;

    $config['superAdmins'] = '1';
     
  15. Mike

    Mike XenForo Developer Staff Member

    You still need to replace the files. That should prevent the error that's there when they're present though.

    Beyond that, if you still have problems, you'll need to contact the author.
     
  16. borbole

    borbole Well-Known Member

    It looks fine qua coding wise. What program are you using to make the edits? Can you try to first ftp the file to your pc, make the edits there and then re upload it back over writing the old one? Try filezilla for ftp and notepad++ for editing the file.
     
  17. MQK8

    MQK8 Active Member

    Hi borbole
    Okay, thanks I sure will.. Thanks for the tips and response

    :)
     
    borbole likes this.
  18. borbole

    borbole Well-Known Member

    No problem :)

    I suggested it because I read your post saying that you made the edits from the File Manager. And I have experiences similar issues before with it. The editor used there looks like sometimes it does not save the changes accordingly.
     
  19. MQK8

    MQK8 Active Member

    yeah i did make the via file manager.. both from code editor and just the editor.. I used WINSCP for FTP.. Don't have too much luck with Filzilla, too spiradic.
     
  20. borbole

    borbole Well-Known Member

    Are you having trouble with the config.php file or the widget framework add on?

    If the former then try to start a ticket at your customer area so one of the staff here can look into this for you. If the later, have you tried to post at that add on's support thread? Its author can help you out best with it.
     

Share This Page