Entice Posted September 7, 2016 Posted September 7, 2016 Hi. I've been plugging away with my new site back on 2.8. I recently upgraded to 3.x and everything seemed fine. But then until I noticed that my ajax-image-upload script wasn't working anymore. The error I'm getting back is Error: Class 'Processwire\WireUpload' not found (line 31) That line in my script is this: $i = new WireUpload('file'); //also tried the following: //$i = new Processwire\WireUpload('file'); //$i = new \Processwire\WireUpload('file'); None of the above works. I'm so confused on what I'm missing as I do have a copy for 2.8 that works fine. Haven't done any modifications to the file since the update to 3.x Have I missed something for 3.x regarding the namespaces? Any insight is greatly appreciated.
adrian Posted September 7, 2016 Posted September 7, 2016 The PW namespace is ProcessWire, not Processwire 1
Entice Posted September 7, 2016 Author Posted September 7, 2016 Wow, 3 hours on this and it came down to this. I think time to call it a night then and tackle my mapmarker issue tomorrow. Thanks! 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now