Lost All Views - help, please!

Lost All Views - help, please!

gforstergforster Posts: 40Questions: 19Answers: 1

https://debug.datatables.net/oyadur
Hello,

someone did something unknown and now all nothing is displaying - getting a 500 error code on the php files. Apache logs look like this:

PHP Warning:  include(sanitized/php/DataTables.php): failed to open stream: Permission denied in sanitized/tables/volumes_table.php on line 4, referer: https://sanitized/
[Fri Oct 20 11:04:49.383804 2017] [:error] [pid 18198] [client 10.21.177.59:57010] PHP Warning:  include(): Failed opening '../DataTables.php' for inclusion (include_path='.:/usr/share/php7:/usr/share/php7/PEAR') in sanitized/tables/volumes_table.php on line 4, referer: https://sanitized/
[Fri Oct 20 11:04:49.383831 2017] [:error] [pid 18198] [client 10.21.177.59:57010] PHP Fatal error:  Uncaught Error: Class 'DataTables\\Editor' not found insanitized/tables/volumes_table.php:17\nStack trace:\n#0 {main}\n  thrown in sanitized/tables/volumes_table.php on line 17, referer: https://sanitized/

I notice two things:
1. Permission Denied. However, proper permissions are in place for that file and directories
2. DataTables\Editor Class is not found. How is that possible? Likely because of the permissions issue, because I see the class there.

this is happening for ALL datatables, not just the one referenced above.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Sounds like the permissions might have been set incorrectly for one or more of the files / directories.

    What user is your web-server running as? Does it have permissions for the files / directories?

    Does each directory up the tree have execute permissions? What is the result of ls -l if you run that in the php directory?

    Allan

  • gforstergforster Posts: 40Questions: 19Answers: 1

    That's what I thought too, but it all checks out. wwwrun (apache) is the user and has read and execute permissions on all. I can su to that user and traverse all directories needed as well as read files needed.

  • gforstergforster Posts: 40Questions: 19Answers: 1

    Nevermind...figured it out. It was the DataTables.php file that had bad permissions. Thanks for being patient through my panic.****

This discussion has been closed.