Title: cannot upload library
Last modified: August 30, 2016

---

# cannot upload library

 *  Resolved [vladkish58](https://wordpress.org/support/users/vladkish58/)
 * (@vladkish58)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/)
 * I have last h5p plugin,trying upload all libraries failed. I got next message:
   
   n.rename]: SAFE MODE Restriction in effect. The script whose uid is 2935520 is
   not allowed to access /membri/.dummy/temp owned by uid 500 in /membri/mathtutor/
   wp-content/plugins/h5p/admin/class-h5p-plugin-admin.php on line 395
 * Warning: ZipArchive::open() [ziparchive.open]: SAFE MODE Restriction in effect.
   The script whose uid is 2935520 is not allowed to access /membri/.dummy/temp 
   owned by uid 500 in /membri/mathtutor/wp-content/plugins/h5p/h5p-php-library/
   h5p.classes.php on line 680
    Skip to main content Skip to toolbar
 * Warning: file_get_contents([http://mathtutor.altervista.org/wp-content/plugins/h5p/h5p-php-library/library-support.json](http://mathtutor.altervista.org/wp-content/plugins/h5p/h5p-php-library/library-support.json))[
   function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/
   1.0 403 Forbidden in /membri/mathtutor/wp-content/plugins/h5p/h5p-php-library/
   h5p.classes.php on line 2305
 * [https://wordpress.org/plugins/h5p/](https://wordpress.org/plugins/h5p/)

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/cannot-upload-library/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cannot-upload-library/page/2/?output_format=md)

 *  Plugin Author [icc0rz](https://wordpress.org/support/users/icc0rz/)
 * (@icc0rz)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6828736)
 * There are two issues here:
 * 1. The user which is running PHP does not have access to the temporary folder
   of your system. This means that you cannot upload and unpack packages. You must
   make sure the PHP user has access to the _upload\_tmp\_dir_ option specified 
   by _php.ini_, or specify a different directory where the user has write access.
   Which web hosting service are you using?
 * 2. The last warning is a bug when allow_url_fopen is disabled. You can remove
   the warning message by applying [this fix](https://github.com/h5p/h5p-wordpress-plugin/commit/678dba1bc8560c1218f4d50adf0dea64d697fbd7),
   ignoring it or enabling the option.
    The fix will be part of the next release
   of the plugin.
 *  Thread Starter [vladkish58](https://wordpress.org/support/users/vladkish58/)
 * (@vladkish58)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6828768)
 * thank you for fast response. I’m using host altervista.org. I don’t understand
   what does it mean user is running PHP. I’m administrator and doing all installation
   and uploads. How I can get access to upload_tmp_dir option. To say frankly for
   me not clear what to do. I would appreciate if you can help me. I need this plugin
   for teaching Math in my school.
 *  Plugin Author [icc0rz](https://wordpress.org/support/users/icc0rz/)
 * (@icc0rz)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6828834)
 * I did some googling and it seems like other people are strugeling with altervista.
   org as well. It looks like they are very restrictive on what they allow and that
   they even have a separate version of WordPress.
 * However, what you can try is this:
    Open the wp-content/plugins/h5p/public/class-
   h5p-wordpress.php, go to line 96, it should look like this: `$path = sys_get_temp_dir();`
   Change it to: `$path = $this->getH5pPath() . '/temp';` Save the file and then
   try to upload it again. Let me know how it works.
 * It might be that you need to change to a host that allows you to customize PHP
   settings.
 *  Thread Starter [vladkish58](https://wordpress.org/support/users/vladkish58/)
 * (@vladkish58)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6828865)
 * I cannot do anything-I got a message after updating the file
 * Parse error: syntax error, unexpected ‘&’ in /membri/mathtutor/wp-content/plugins/
   h5p/public/class-h5p-wordpress.php on line 96
 *  Thread Starter [vladkish58](https://wordpress.org/support/users/vladkish58/)
 * (@vladkish58)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6828946)
 * the same problem. is there any way to create some h5p files on h5p site and apply
   shortcodes on mine. or upload manually the library:
 * Warning: file_get_contents([http://mathtutor.altervista.org/wp-content/plugins/h5p/h5p-php-library/library-support.json](http://mathtutor.altervista.org/wp-content/plugins/h5p/h5p-php-library/library-support.json))[
   function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/
   1.0 403 Forbidden in /membri/mathtutor/wp-content/plugins/h5p/h5p-php-library/
   h5p.classes.php on line 2305
    Libraries
 *  The file you uploaded is not a valid HTML5 Package (We are unable to unzip it)
 *  Plugin Author [icc0rz](https://wordpress.org/support/users/icc0rz/)
 * (@icc0rz)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6828962)
 * You can use the embed feature to embed content from another site. If you click
   the embed button below your content a dialog should appear with the required 
   embed code.
    You should be able to insert this into your posts, however, I think
   you must use the **text** editing mode, and not the _visual_ one.
 * The best solution is of course if you get it working on your own WP install. 
   You should have another try with the new version of the plugin, which is just
   around the corner.
 *  Thread Starter [vladkish58](https://wordpress.org/support/users/vladkish58/)
 * (@vladkish58)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6828989)
 * thank you, I have 2 more questions.
    Is it possible to create animation in course
   presentation, is the plugin supports animated gif. can I add a video with transporant
   background is it possible to insert to summary a picture depending on the result
   grade
 *  Plugin Author [icc0rz](https://wordpress.org/support/users/icc0rz/)
 * (@icc0rz)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6829012)
 * Yes, you should be able to use animated and transparent gifs.
 * I haven’t seen any working transparent videos in HTML5 yet, but I guess it is
   possible in theory. However, I assume it will require some work and possible 
   not work in all browsers.
 * Summary image is not possible through the editor, but in theory you can add it
   through some custom JavaScript and styling.
 *  Thread Starter [vladkish58](https://wordpress.org/support/users/vladkish58/)
 * (@vladkish58)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6829027)
 * updated to a new version 1.5.5. Again I got an error
 * ctTo() [ziparchive.extractto]: Unable to access /membri/mathtutor/wp-content/
   uploads/h5p/temp/h5p-566adbddb2263/EmbeddedJS-1.0/js in /membri/mathtutor/wp-
   content/plugins/h5p/h5p-php-library/h5p.classes.php on line 681
 * Libraries
 *  Missing required library swfobject 1.0
 *  Plugin Author [icc0rz](https://wordpress.org/support/users/icc0rz/)
 * (@icc0rz)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6829029)
 * Oh, trick this one! Looks like it’s a slightly different issue now. The plugin
   is not allowed access to extract the file that has been uploaded.
    I’m not very
   familiar with altervista.org, is there a way you could check if the wp-content/
   uploads/h5p/temp folder is writable? and if not possible try to give the write
   permission on all the folders inside wp-content/uploads/h5p ? You should be able
   to do it if you’re using FTP. Did you upload the WordPress folder or was it already
   there?
 *  Thread Starter [vladkish58](https://wordpress.org/support/users/vladkish58/)
 * (@vladkish58)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6829031)
 * I gave public write permission to
    wp-content/uploads/h5p and /wp-content/plugins/
   h5p/h5p-php-library recurse to subdirectories, and got the same error. I very
   appreciate your help thank you very much. do you have more ideas?
 * I was trying to add presentation and got messege
    Missing title. A valid content
   folder is missing A valid main h5p.json file is missing
 *  Thread Starter [vladkish58](https://wordpress.org/support/users/vladkish58/)
 * (@vladkish58)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6829033)
 * I used build-in altervista wordpress. do you think update to 4.4 can help me 
   or I have to contact altervista support?
 *  Thread Starter [vladkish58](https://wordpress.org/support/users/vladkish58/)
 * (@vladkish58)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6829041)
 * I was trying to move all libraries manually by extracting them and copy them 
   by ftp to upload/h5p but I don’t were each folder should be located. It’s still
   not working but solution should be.
 *  Thread Starter [vladkish58](https://wordpress.org/support/users/vladkish58/)
 * (@vladkish58)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6829048)
 * I succeed in 4 applications (fill in blank, guess, single choice,hot spot) but
   the most important for me Course presentation failed.
 *  Plugin Author [icc0rz](https://wordpress.org/support/users/icc0rz/)
 * (@icc0rz)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-upload-library/#post-6829084)
 * Ok, so I had a short look at AlterVista. It seems like they have a special build
   of PHP or that there’s a bug or something, anyway, you should be able to fix 
   the issues you’re having by changing the PHP version. Do the following: Login
   to the control panel. Go to the _Resources_ tab and find a link labelled _Edit
   PHP Settings_, click on it. On this page, you should find a select box where 
   you can choose which PHP version to use. Change it to _php5.4_ and Save.
    Now,
   go into your WordPress and try to _Add new_ and upload the Course Presentation
   example content. This should work.
 * Also, on the _Edit PHP Settings_ page:
    Make sure you have the file upload max
   size set at 20 MB or more. Further down on the page there’s a section label _Server
   to server connections_. Make sure you’ve verified your identity, this makes it
   a lot easier for you to update the H5P Content Types.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/cannot-upload-library/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cannot-upload-library/page/2/?output_format=md)

The topic ‘cannot upload library’ is closed to new replies.

 * ![](https://ps.w.org/h5p/assets/icon.svg?rev=986118)
 * [Interactive Content – H5P](https://wordpress.org/plugins/h5p/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/h5p/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/h5p/)
 * [Active Topics](https://wordpress.org/support/plugin/h5p/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/h5p/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/h5p/reviews/)

## Tags

 * [please help](https://wordpress.org/support/topic-tag/please-help/)

 * 17 replies
 * 2 participants
 * Last reply from: [icc0rz](https://wordpress.org/support/users/icc0rz/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-upload-library/page/2/#post-6829092)
 * Status: resolved