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

XF 1.4 Creating cron to delete server errors

Discussion in 'XenForo Questions and Support' started by slewis1972, Jan 14, 2015.

  1. slewis1972

    slewis1972 Member

    Hi
    I have a server error with widget framework that causes me to get loads of server errors. Posted on that third party page.Its basically:

    unexpected '<' - library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function:1

    and others have had the issue but does not look like everyone.

    Anyway, to save me keep having to manually clear the logs, I am wondering if I can create a cron that deletes the logs after x number of days. Question is, what class etc settings do I need to enter to create?

    Thanks
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It would require back end (PHP) code - are you familiar with writing PHP?

    Personally I don't think it's a good idea to automatically prune the error log.
    You would be better off trying to resolve the issue which causes the errors.
     
    SneakyDave likes this.

Share This Page