Joomla 1.5 Template – Unable to write entry

// 24022008 / Joomla / 7 Kommentare

Today, a quite strange joomla problem crossed my way: I had developped a template and when I finally had zipped it, I couldn’t install it:

Warning: file_put_contents() failed to open stream: permission denied in /xxxxxx/htdocs/libraries/joomla/utilities/compat/php50x.php on line 66

Well, I checked the templateDetails.xml file but everything seemed ok. Perhaps I had a problem with my local development server? So I took another joomla 1.5 template which I had already installed successfully on a client’s server for testing purposes. As supposed there was no problem installing that template on my “joomla optimized” dev server.
I gave google the next chance to find a solution but I didn’t find anything useful about my joomla-template-upload-problem. It seemed that the bug was neither in the template nor in the server configuration.

I didn’t really believe that error could be in the way of zipping the template package but I gave my idea a try: I unzipped the template that I had uploaded successfully, then I deleted the zip-package and zipped back the template-files I had unpacked a minute ago with my IZarc zip software. The goal was to create the zip package by my own. When I tried to upload the template the second time I got the acknowledgement: The template-package didn’t work and I got the same error like before with my fresh developped template.

Then I switched to my dev server’s shell (it’s a debian) and zipped the files via linux zip. Again, I tried to upload the package and – surprise, suprise – it worked!

I can’t figure out why the first zip (windows based IZarc) was rejected and the second one (linux based zip) not, but if you came here because you were looking for a solution for your joomla throwing similar errors when you try to install a package, my advice is to zip the package again with another software (preferably linux based).

  • del.icio.us
  • Google Bookmarks
  • email
  • MisterWong.DE
  • Print
  • Technorati
  • Webnews.de
  • Yigg

7 Kommentare zu "Joomla 1.5 Template – Unable to write entry"

  1. Jonathan Jonathan Juni 16th, 2008 at 04:50

    It sounds so trivial!!! Yet it works!!!

  2. sulistianto sulistianto Juli 20th, 2008 at 08:03

    I’m facing same problem then I came around to this forum http://forum.joomla.org/viewtopic.php?f=236&t=305868

  3. Joomla Artikel auf younic | webdesign joomla online business marketing geeks und das web 2.0 Joomla Artikel auf younic | webdesign joomla online business marketing geeks und das web 2.0 November 18th, 2008 at 22:24

    [...] Joomla 1.5 Template – Unable to write entry [...]

  4. angry_onion angry_onion März 24th, 2009 at 00:44

    I had the same problem when I created a template in Artisteer and exported the file as a zip.
    After reading your comments, I exported the file as a folder and than zipped it with winrar on windows vista.

    After that it worked.

    Why is everything always sooooooo complicated?

  5. Engjell Gjugja Engjell Gjugja Mai 19th, 2009 at 17:26

    Its really works thnx very very much broth

  6. Frank G.W. Frank G.W. Juni 4th, 2009 at 02:40

    Wow!

    Same problem – Same solution.

    Thank’s a lot!!

  7. Swiss Swiss November 27th, 2009 at 23:52

    Same here unziped it and reziped it with winrar as a normal zip file. :)


Kommentieren