Random header image on we_universal [RESOLVED]
Posted: Tue Jul 28, 2020 9:00 pm
Hello,
I'm currently using some functions to make a random header image with

Errors:
Error line:
At the other pages this function works normally, but at the app.php/x page it doesn't, I have no clue on how to fix this, could anyone help me?
I'm currently using some functions to make a random header image with
we_universal
, and it's actually working, but on the "Password Recovery" page, this happens:
Errors:
Code: Select all
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4136: scandir(./../styles/we_universal/theme/headers/): failed to open dir: No such file or directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4136: scandir(): (errno 2): No such file or directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4136: array_diff(): Expected parameter 1 to be an array, bool given
Code: Select all
$inventea_images_list = array_diff(scandir($inventea_images_path), array('.', '..'));