![]() |
|
Logs from external php file - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Logs from external php file (/thread-14049.html) |
Logs from external php file - ctdlg - 06-05-2025 Hello, Example, extraction.php contains : This php file is in /scripts Maybe extraction.php should start with But image.php already uses this code ! Thanks in advance. Logs from external php file - acrylian - 07-05-2025 I have no idea what "extraction.php" is The proper usages is Logs from external php file - acrylian - 07-05-2025
That code is to make sure the theme page is accessed in the right context. Include files should not need that. Besides it would not hurt to add it there as well in case someone really accesses that directly. But it will otherwise just fail with errors. Logs from external php file - ctdlg - 07-05-2025 Thank you acrylian, problem solved with your help. My theme image.php uses this line (example) My personal-logs.php file contains Zephoto debug log displays my personal logs, I can carry on on a project ! Was the trick. Logs from external php file - acrylian - 07-05-2025
So this is outside your install respectively thte theme? Otherwise the our path constants like SERVERPATH should be fitting. If the file is within your theme's folder you should not need the path and just include 'scripts/personal-logs.php' should work (that's how some themes include header or footer files). I don't remember when I added it but in 1.6.6 you can also create your own custom log file with debuglog() if necessary. See the arguments on the doc link above. Logs from external php file - ctdlg - 08-05-2025 Yes, I will upgrade from 1.6.5 to 1.6.6 very soon, and, of course, test your new custom log file option !! |