Files wont upload
-
I just installed this on my site, and if it ends up working I will be getting the pro version. but for some reason it doesnt work at all. creating folders does nothing, and uploading files does nothing, however it does in fact show all folders and files in the wp-content/uploads directory that were there previous to the install of the plugin.
error log shows nothing at all when files are failing to upload. but I do get this while trying to create a directory
Trying to create directory at /wp-content/uploads/testing, referer: https://educationaltravel.travel/wp-admin/admin.php?page=media-library
our php guy took a look at the code and was able to hack it as seen below
public function get_absolute_path($url) { $file_path = str_replace( $this->upload_dir['baseurl'], $this->upload_dir['basedir'], $url ); // Tim's hack starts here if (substr($file_path, 0, 12) == '/wp-content/') { $file_path = str_replace('/wp-content/uploads', $this->upload_dir['basedir'], $url); } // Ends here
and gave these comments:
$this->upload_dir[‘baseurl’] is being set to:
https://educationaltravel.travel/wp-content/uploads
It looks like it would work if it was set to:
/wp-content/uploadsdo you have any idea why this may be happening? is there a settings configuration I missed somewhere? or is it grabbing that baseurl from somewhere in the database.
Would love to get this working! hopefully I was thorough enough in my explanation.
- The topic ‘Files wont upload’ is closed to new replies.