Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image upload #5

Open
wayferer opened this issue Sep 15, 2014 · 6 comments
Open

Image upload #5

wayferer opened this issue Sep 15, 2014 · 6 comments

Comments

@wayferer
Copy link

Hi there,

Hoping that there is something simple that I have overlooked but whenever I try to upload an image using the image block I get the following error:

POST http://{URL}/wp-admin/media-new.php 403 (Forbidden)
load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,plupload…:4
send
load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,plupload…:4
m.extend.ajax load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,plupload…:4
(anonymous function) 
sir-trevor-wp.js?ver=4.0:131
j
load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,plupload…:2
k.fireWith
load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,plupload…:2
x
load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,plupload…:4
b
load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,plupload…:4

Any suggestions? Note that normal uploads are working fine i.e. through the default media uploader.

Thanks.

@neyre
Copy link
Owner

neyre commented Sep 15, 2014

What version of Wordpress is this?

@wayferer
Copy link
Author

Latest, 4.0

@wayferer
Copy link
Author

wayferer commented Oct 2, 2014

@neyre any suggestions on this one?

@neyre
Copy link
Owner

neyre commented Oct 2, 2014

I haven't been able to make any time to look at this. It appears that there are some issues with Wordpress 4. I likely won't have time to diagnose for a while. If someone else could look at it and send a pull request, that'd be awesome.

@wayferer
Copy link
Author

wayferer commented Oct 5, 2014

No worries. Do let me know if and when you get a chance. it does seem like it might be related to #4.

@supermensa
Copy link

Here's a dump from the error log:

PHP Notice: Undefined index: file in [...]/wp-content/plugins/sir-trevor-wp/block-templates/image.php on line 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants