Code Monkey home page Code Monkey logo

Comments (3)

liebig avatar liebig commented on July 16, 2024

I think the obfuscator produces this error. I have never seen a Two closures were declared on the same line of code error before and if the obfuscator condenses the code to a single line and the error is, that two closures were declared on the same line of code, the obfuscation seems to be the problem. I think it is not a problem with Laravel or the Cron library, just don't declare two closures on the same line. Did you try to use the code without obfuscating it?

from cron.

CitizenOfRome avatar CitizenOfRome commented on July 16, 2024

Thanks for the prompt response.

It works fine without the obfuscation.

We're only obfuscating the app folder and the rest of the app seems to be working fine even with obfuscation ....

Is there a way we could get the full error stack trace and file/line that is causing this error from cron.jobError?

from cron.

CitizenOfRome avatar CitizenOfRome commented on July 16, 2024

A helper class file had two closures and the issue was fixed when we moved them into two separate files. So this most likely was an issue with the obfuscator.

Strangely the same obfuscated helper class has been working as expected when used anywhere else in the app - it only causes this issue when used with Cron (even with the URL based /cron.php route).

I'll be happy to help you investigate further if interested.

Thank you once again for all your help and support.

from cron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.