Title: [Plugin: The Piecemaker 2] Error When Adding Assets
Last modified: August 19, 2016

---

# [Plugin: The Piecemaker 2] Error When Adding Assets

 *  [drinkliverpool](https://wordpress.org/support/users/drinkliverpool/)
 * (@drinkliverpool)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-the-piecemaker-2-error-when-adding-assets/)
 * > Warning: mkdir() [function.mkdir]: Permission denied in /home/blackwol/public_html/
   > wp-content/plugins/piecemaker/piecemaker-main.php on line 768
   >  /home/blackwol/
   > public_html/wp-includes/piecemaker-images/267794107735_20110123142249000000.
   > jpg100 100 Warning: copy(/home/blackwol/public_html/wp-includes/piecemaker-
   > images/267794107735_20110123142249000000.jpg) [function.copy]: failed to open
   > stream: No such file or directory in /home/blackwol/public_html/wp-content/
   > plugins/piecemaker/piecemaker-main.php on line 2726 267794107735.jpg – Write
   > file error! Please check permission fb-books/ ,fb-images/ folders and set to“
   > 777 Assets
   > Warning: mkdir() [function.mkdir]: Permission denied in /home/blackwol/public_html/
   > wp-content/plugins/piecemaker/piecemaker-main.php on line 768
   > Warning: mkdir() [function.mkdir]: Permission denied in /home/blackwol/public_html/
   > wp-content/plugins/piecemaker/piecemaker-main.php on line 768
 * **Line 768 is:**
    `if(!mkdir($dirName,$permit))`

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [c.burkill](https://wordpress.org/support/users/cburkill/)
 * (@cburkill)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-the-piecemaker-2-error-when-adding-assets/#post-1876912)
 * just ordered a new server, get a similar but much smaller error: /var/www/vhosts/
   crswebdesign.co.uk/httpdocs/wp-includes/piecemaker-images/piece1_20110205113636u.
   jpg100 100 piece1.jpg – Write file error! Please check permission fb-books/ ,
   fb-images/ folders and set to “777
 * I presuming its some kind of server side folder permissions, did you find a solution?
 *  [halles](https://wordpress.org/support/users/halles/)
 * (@halles)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-the-piecemaker-2-error-when-adding-assets/#post-1876946)
 * I found out that the plugin tries creating directories under wp-includes which
   is plain wrong from a WP conventions point of view.
 * You have to create piecemaker-images and piecemakers (in wp-includes) and set
   permissions to 777 on those directories (not wp-includes, just the other two).
 * However, i made several modifications to the original plugin to adhere to WP 
   standards, which fixes that, moves various of the routes under uploads, and several
   other changes. If uploads directory has permissions set to 777 it will create
   the proper directories. You can find it at [http://code.halles.cl/the-piecemaker-2-for-wp-fork](http://code.halles.cl/the-piecemaker-2-for-wp-fork)
 * Cheers!
 *  [aleklisefski](https://wordpress.org/support/users/aleklisefski/)
 * (@aleklisefski)
 * [15 years ago](https://wordpress.org/support/topic/plugin-the-piecemaker-2-error-when-adding-assets/#post-1876964)
 * [@halles](https://wordpress.org/support/users/halles/) – the link to your modified
   plugin is broken. Do you still have that?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: The Piecemaker 2] Error When Adding Assets’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/the-piecemaker-image-rotator.svg)
 * [The Piecemaker 2](https://wordpress.org/plugins/the-piecemaker-image-rotator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-piecemaker-image-rotator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-piecemaker-image-rotator/)
 * [Active Topics](https://wordpress.org/support/plugin/the-piecemaker-image-rotator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-piecemaker-image-rotator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-piecemaker-image-rotator/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [aleklisefski](https://wordpress.org/support/users/aleklisefski/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/plugin-the-piecemaker-2-error-when-adding-assets/#post-1876964)
 * Status: not resolved