Hi,
I have upgraded from v3.5 (production) to 3.8 (development) and now images are not showing, and files like PDFs in courses are inaccessible. Examples as follow:
Development server (3.8 Build 20191129) - Not working.
PHP 7.2
images: http://cursos2020.centroredes.org.ar/pluginfile.php/46953/course/section/5250/Satelitales1.jpg
This link returns a blank image. no errors in server log. access log shows the following:
XXX.XXX.XXX.XXX - - [20/Dec/2019:15:43:23 -0500] "GET /pluginfile.php/46953/course/section/5250/Satelitales1.jpg HTTP/1.1" 304 295 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36"
PDF: http://cursos2020.centroredes.org.ar/pluginfile.php/47251/mod_resource/content/1/clase-2.pdf
XXX.XXX.XXX.XXX - - [20/Dec/2019:15:44:48 -0500] "GET /pluginfile.php/47251/mod_resource/content/1/clase-2.pdf HTTP/1.1" 304 297 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36"
Production server (3.5.5+) - Working.
PHP 7.0
images: http://cursos.centroredes.org.ar/pluginfile.php/46953/course/section/5250/Satelitales1.jpg
This link returns a blank image. no errors in server log. access log shows the following:
XXX.XXX.XXX.XXX - - [20/Dec/2019:15:43:23 -0500] "GET /pluginfile.php/46953/course/section/5250/Satelitales1.jpg HTTP/1.1" 304 295 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36"
PDF: http://cursos.centroredes.org.ar/pluginfile.php/47251/mod_resource/content/1/clase-2.pdf
XXX.XXX.XXX.XXX - - [20/Dec/2019:15:44:48 -0500] "GET /pluginfile.php/47251/mod_resource/content/1/clase-2.pdf HTTP/1.1" 304 297 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36"
- Slash arguments set to OFF, No change.
- Double checking moodledata files and size. They are the same.
- cgi.fixpathinfo = 1 on PHP INI. No change.
- Made sure php7.2-gs (and others) is installed.
- I also tried changing the numerical values on URL and I get the following error, indicating that the IRL is correct and the file is probably(?) there.
Sorry, the requested file could not be found
Error code: filenotfound
- line 494 of /lib/setuplib.php: moodle_exception thrown
- line 2074 of /lib/filelib.php: call to print_error()
- line 4647 of /lib/filelib.php: call to send_file_not_found()
- line 44 of /pluginfile.php: call to file_pluginfile()
I am not sure what else to try. I don't know if this is server related perhaps?
Any help would be appreciated!