You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
following explanation:
updating the company logo in its original version works but generates two critical errors in php 8.2 -- php8.3
let me explain ho, it all starts with the info_config.php form
when validating "change image" on POST to controller /root/app/Controllers/Config.php postSaveInfo method
$upload_success = !empty($upload_data['error']); the variable $upload_success is not loaded ( !isset ) and causes a critical error on line 357 $message = $upload_success ? $message: strip_tags($upload_data['error']);
fix in upload_logo method.
// Method upload_logo() infos: if $file->guessExtension() is loaded after move function then not work ( /tmp/file_tmp is moved )
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
DAY 2
thanks OSPOS
following explanation:
updating the company logo in its original version works but generates two critical errors in php 8.2 -- php8.3
let me explain ho, it all starts with the info_config.php form
when validating "change image" on POST to controller /root/app/Controllers/Config.php postSaveInfo method
coded
the $file_info = [...] block is moved up and an 'error' key is added to initialize the value to empty.
I hope this will be clear enough because I'm doing it with what I have.
bye see you tomorrow
PS // INFOS: https://stackoverflow.com/questions/58728648/how-to-display-uploaded-images-in-codeigniter-4
Beta Was this translation helpful? Give feedback.
All reactions