Home › Forums › Bug Reports › Strict Standards error on file upload
Once a file is uploaded to a file field and the page/post is saved, I get this warning:
Strict Standards: Only variables should be passed by reference in …/wp-content/plugins/advanced-custom-fields/core/fields/file.php on line 83
This is on the latest update (4.2.0) and the file I was uploading was a .zip file. If it helps, the field was located on the options plugin page.
Thanks for the bug report.
Looking at the file, the line in question is:
$o['name'] = end(explode('/', $o['url']));
Seems like WP’s new strict standards has an issue with the ‘/’ as a parameter?
That’s pretty strange…
Do you have debug mode on or off?
I have debug mode on for developing
I’ll add it to the to-do
This has now been fixd and included in the next version
Tagged: php warning, strict standards
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields support forum. Please search before posting a new topic to help keep conversation streamlined.
Looking for the old support forum?
The forum support hours are Monday through Friday, 9AM to 6PM EAST (UTC/GMT+10). Please allow adequate time for a response to your inquiry.
Helping others is a great way to earn karma, gain badges and help ACF development!
The Advanced custom fields plugin is created and maintained by Elliot Condon; a web developer living and working in Melbourne, Australia.
Copyright 2013 Elliot Condon