Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Errors and Warnings #59

Closed
philipnorton42 opened this issue Feb 27, 2021 · 2 comments
Closed

PHP Errors and Warnings #59

philipnorton42 opened this issue Feb 27, 2021 · 2 comments

Comments

@philipnorton42
Copy link

philipnorton42 commented Feb 27, 2021

Describe the bug

There are a few notices and warnings being produced by the tool when in use. For example:

Notice: Undefined index: date1 in src/ScraperBot/Routing/Controllers/SitesController.php on line 84
Notice: Undefined index: date2 in src/ScraperBot/Routing/Controllers/SitesController.php on line 84
Notice: Undefined variable: persistNaughty in src/ScraperBot/Routing/Controllers/SitesController.php on line 84
Notice: Undefined variable: persistLatest in src/ScraperBot/Routing/Controllers/SitesController.php on line 84

To Reproduce

Errors are produced on most pages of the site, but also when using the command line interface.

Error also produced by a missing favicon.ico file.

Expected behavior

No errors should be produced during the normal use of the tool.

@philipnorton42
Copy link
Author

Added a PR for this that changes a few things in the codebase. All of the functionality is intact, I've just added some defaults to the variables being used so that they do not produce PHP warnings.

@alex-moreno
Copy link
Owner

lovely, thanks a lot @philipnorton42 💪 💪 ❤️

Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants