Jump to content
Entice

WireUpload not found

Recommended Posts

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.

Share this post


Link to post
Share on other sites

The PW namespace is ProcessWire, not Processwire

 

  • Like 1

Share this post


Link to post
Share on other sites

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!

  • Like 1

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...