farmOS / farmOS

farmOS: A web-based farm record keeping application.
https://farmOS.org
GNU General Public License v2.0
975 stars 272 forks source link

404 Errors On Log Entries #342

Closed CFWHISPERER closed 4 years ago

CFWHISPERER commented 4 years ago

We have been using farmOS for a couple of years now with great success and all of a sudden today we are getting a 404 error when submitting a log entry. URL https://perma-ledger.com/log/add/farm_maintenance?destination=farm/logs/maintenance screenshot attached.

CFWHISPERER commented 4 years ago

404error

mstenta commented 4 years ago

Hmm I don't know where that 404 message is coming from, but it's not farmOS. It looks like you are actually experiencing a PHP error... can you check your logs at /admin/reports/dblog and see if anything jumps out?

CFWHISPERER commented 4 years ago

Thanks, will do and I will update the ticket afterward.

On Thu, Aug 20, 2020 at 12:49 PM Michael Stenta notifications@github.com wrote:

Hmm I don't know where that 404 message is coming from, but it's not farmOS. It looks like you are actually experiencing a PHP error... can you check your logs at /admin/reports/dblog and see if anything jumps out?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/farmOS/farmOS/issues/342#issuecomment-677868538, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFRYJSY7XKVPX7VG4EXAD3SBV437ANCNFSM4QGPZMHQ .

-- Kind Regards - Mike Brunt Bringing Technology To Food Via Permaculture Phone: +1 541 232 5610 https://www.meetup.com/Eugene-Permaculture-Meetup https://www.meetup.com/Hyperledger-Eugene/ https://www.meetup.com/Eugene-Blockchain-Meetup/ https://www.meetup.com/meetup-group-aynVxiTT http://www.cfwhisperer.com/ http://www.foodscaping.co http://www.earthdollar.org http://www.perma-ledger.com Twitter @cfwhisperer

CFWHISPERER commented 4 years ago

Being a bit ignorant here, where is /admin/reports/dblog volume located?

mstenta commented 4 years ago

Oh sorry, I should have been clear: that is meant to be a farmOS/Drupal path. So depending on what URL your farmOS instance is located at, open in your browser: https://[your-farmOS-url]/admin/reports/dblog

CFWHISPERER commented 4 years ago

This is in the dblog when I tried to save a maintenance log just now.

0820-issues-02 0820-issues-01

CFWHISPERER commented 4 years ago

Looking at the first occurrence of the error on 08/20/20 at 8:14 all looks normal before that except for this entry page not found adminer-4.6.1.php (http://perma-ledger.com:80/adminer-4.6.1.php) that was at 6:51 then right before the error at 8:04 a cron job ran.

CFWHISPERER commented 4 years ago

So, everything is working OK again now, so this is a bit of a mystery in fact.

mstenta commented 4 years ago

Hi @CFWHISPERER - that specific error you saw in the logs (call to member function getY()) was fixed in farmOS 7.x-1.4. Are you perhaps using an older version?

Here are two other GitHub issues with more details: #242 #161

Looking at the first occurrence of the error on 08/20/20 at 8:14 all looks normal before that except for this entry page not found adminer-4.6.1.php (http://perma-ledger.com:80/adminer-4.6.1.php) that was at 6:51 then right before the error at 8:04 a cron job ran.

Is Adminer something that you installed? If not, and it wasn't you that tried to access that path, then that may be a sign that your server is being probed for vulnerabilities. Not uncommon - but perhaps something you want to keep an eye on. Keep your server and farmOS up-to-date and start blocking offending IP addresses if it becomes a problem.

Hope that helps!