Post by x2p » Wed Aug 29, 2012 6:20 pm

Warning: mkdir() [function.mkdir]: Permission denied in /www/htdocs/w00ef0c3/hosting/catalog/model/tool/image.php on line 23Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w00ef0c3/hosting/image/cache/data/demo/samsung_banner-980x280.jpg' for writing: No such file or directory in /www/htdocs/w00ef0c3/hosting/system/library/image.php on line 45Warning: mkdir() [function.mkdir]: Permission denied in /www/htdocs/w00ef0c3/hosting/catalog/model/tool/image.php on line 23Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w00ef0c3/hosting/image/cache/data/demo/macbook_1-80x80.jpg' for writing: No such file or directory in /www/htdocs/w00ef0c3/hosting/system/library/image.php on line 45Warning: mkdir() [function.mkdir]: Permission denied in /www/htdocs/w00ef0c3/hosting/catalog/model/tool/image.php on line 23Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w00ef0c3/hosting/image/cache/data/demo/iphone_1-80x80.jpg' for writing: No such file or directory in /www/htdocs/w00ef0c3/hosting/system/library/image.php on line 45Warning: mkdir() [function.mkdir]: Permission denied in /www/htdocs/w00ef0c3/hosting/catalog/model/tool/image.php on line 23Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w00ef0c3/hosting/image/cache/data/demo/apple_cinema_30-80x80.jpg' for writing: No such file or directory in /www/htdocs/w00ef0c3/hosting/system/library/image.php on line 45Warning: mkdir() [function.mkdir]: Permission denied in /www/htdocs/w00ef0c3/hosting/catalog/model/tool/image.php on line 23Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w00ef0c3/hosting/image/cache/data/demo/samsung_tab_1-80x80.jpg' for writing: No such file or directory in /www/htdocs/w00ef0c3/hosting/system/library/image.php on line 45Warning: mkdir() [function.mkdir]: Permission denied in /www/htdocs/w00ef0c3/hosting/catalog/model/tool/image.php on line 23Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w00ef0c3/hosting/image/cache/data/demo/sony_vaio_1-80x80.jpg' for writing: No such file or directory in /www/htdocs/w00ef0c3/hosting/system/library/image.php on line 45Warning: mkdir() [function.mkdir]: Permission denied in /www/htdocs/w00ef0c3/hosting/catalog/model/tool/image.php on line 23Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w00ef0c3/hosting/image/cache/data/demo/hp_1-80x80.jpg' for writing: No such file or directory in /www/htdocs/w00ef0c3/hosting/system/library/image.php on line 45Warning: mkdir() [function.mkdir]: Permission denied in /www/htdocs/w00ef0c3/hosting/catalog/model/tool/image.php on line 23Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w00ef0c3/hosting/image/cache/data/demo/htc_logo-80x80.jpg' for writing: No such file or directory in /www/htdocs/w00ef0c3/hosting/system/library/image.php on line 45Warning: mkdir() [function.mkdir]: Permission denied in /www/htdocs/w00ef0c3/hosting/catalog/model/tool/image.php on line 23Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w00ef0c3/hosting/image/cache/data/demo/canon_logo-80x80.jpg' for writing: No such file or directory in /www/htdocs/w00ef0c3/hosting/system/library/image.php on line 45Warning: mkdir() [function.mkdir]: Permission denied in /www/htdocs/w00ef0c3/hosting/catalog/model/tool/image.php on line 23Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w00ef0c3/hosting/image/cache/data/demo/apple_logo-80x80.jpg' for writing: No such file or directory in /www/htdocs/w00ef0c3/hosting/system/library/image.php on line 45Warning: mkdir() [function.mkdir]: Permission denied in /www/htdocs/w00ef0c3/hosting/catalog/model/tool/image.php on line 23Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w00ef0c3/hosting/image/cache/data/demo/palm_logo-80x80.jpg' for writing: No such file or directory in /www/htdocs/w00ef0c3/hosting/system/library/image.php on line 45Warning: mkdir() [function.mkdir]: Permission denied in /www/htdocs/w00ef0c3/hosting/catalog/model/tool/image.php on line 23Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w00ef0c3/hosting/image/cache/data/demo/sony_logo-80x80.jpg' for writing: No such file or directory in /www/htdocs/w00ef0c3/hosting/system/library/image.php on line 45Warning: mkdir() [function.mkdir]: Permission denied in /www/htdocs/w00ef0c3/hosting/catalog/model/tool/image.php on line 23Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w00ef0c3/hosting/image/cache/data/demo/hp_logo-80x80.jpg' for writing: No such file or directory in /www/htdocs/w00ef0c3/hosting/system/library/image.php on line 45

what can i do?

x2p
New member

Posts

Joined
Sun Feb 12, 2012 9:16 pm

Post by k2tec » Wed Aug 29, 2012 7:04 pm

Look if your image/ cache is writeable

User avatar
Active Member

Posts

Joined
Mon Apr 12, 2010 8:06 pm

Post by x2p » Fri Aug 31, 2012 1:30 am

it is, all is correct! 1.5.2.1 works and older versions too, but not the both newest.

x2p
New member

Posts

Joined
Sun Feb 12, 2012 9:16 pm

Post by luisramalho » Thu Sep 06, 2012 3:33 am

Make sure the folder image / cache / data is writtable.

Newbie

Posts

Joined
Thu Sep 06, 2012 3:31 am

Post by zollop » Tue Sep 11, 2012 7:53 pm

luisramalho wrote:Make sure the folder image / cache / data is writtable.
This is my first time using OpenCart.
I had similar looking warnings on top of the store page, during the first time viewing the store page immediately after completing installation. (version: v1.5.4.1 August 18, 2012 )
I had to give 0777 permissions to all the directories listed in the install.txt before I was allowed to pass through step 2 of the installer.

Code: Select all

   chmod  0777 image/
   chmod 0777 image/cache/
   chmod 0777 image/data/   
   chmod 0777 system/cache/
   chmod 0777 system/logs/
   chmod 0777 download/
   chmod 0777 config.php
   chmod 0777 admin/config.php
However I still got this bunch of warnings at the top of my store page, immediately after installation.

Code: Select all

Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/httpdocs/store/catalog/model/tool/image.php on line 23
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/blah/blah/httpdocs/store/image/cache/data/demo/samsung_banner-980x280.jpg' for writing in /blah/blah/httpdocs/store/system/library/image.php on line 45
Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/httpdocs/store/catalog/model/tool/image.php on line 23
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/blah/blah/httpdocs/store/image/cache/data/demo/macbook_1-80x80.jpg' for writing in /blah/blah/httpdocs/store/system/library/image.php on line 45
Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/httpdocs/store/catalog/model/tool/image.php on line 23
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/blah/blah/httpdocs/store/image/cache/data/demo/iphone_1-80x80.jpg' for writing in /blah/blah/httpdocs/store/system/library/image.php on line 45
Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/httpdocs/store/catalog/model/tool/image.php on line 23
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/blah/blah/httpdocs/store/image/cache/data/demo/apple_cinema_30-80x80.jpg' for writing in /blah/blah/httpdocs/store/system/library/image.php on line 45
Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/httpdocs/store/catalog/model/tool/image.php on line 23
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/blah/blah/httpdocs/store/image/cache/data/demo/samsung_tab_1-80x80.jpg' for writing in /blah/blah/httpdocs/store/system/library/image.php on line 45
Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/httpdocs/store/catalog/model/tool/image.php on line 23
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/blah/blah/httpdocs/store/image/cache/data/demo/sony_vaio_1-80x80.jpg' for writing in /blah/blah/httpdocs/store/system/library/image.php on line 45
Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/httpdocs/store/catalog/model/tool/image.php on line 23
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/blah/blah/httpdocs/store/image/cache/data/demo/hp_1-80x80.jpg' for writing in /blah/blah/httpdocs/store/system/library/image.php on line 45
Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/httpdocs/store/catalog/model/tool/image.php on line 23
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/blah/blah/httpdocs/store/image/cache/data/demo/htc_logo-80x80.jpg' for writing in /blah/blah/httpdocs/store/system/library/image.php on line 45
Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/httpdocs/store/catalog/model/tool/image.php on line 23
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/blah/blah/httpdocs/store/image/cache/data/demo/canon_logo-80x80.jpg' for writing in /blah/blah/httpdocs/store/system/library/image.php on line 45
Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/httpdocs/store/catalog/model/tool/image.php on line 23
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/blah/blah/httpdocs/store/image/cache/data/demo/apple_logo-80x80.jpg' for writing in /blah/blah/httpdocs/store/system/library/image.php on line 45
Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/httpdocs/store/catalog/model/tool/image.php on line 23
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/blah/blah/httpdocs/store/image/cache/data/demo/palm_logo-80x80.jpg' for writing in /blah/blah/httpdocs/store/system/library/image.php on line 45
Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/httpdocs/store/catalog/model/tool/image.php on line 23
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/blah/blah/httpdocs/store/image/cache/data/demo/sony_logo-80x80.jpg' for writing in /blah/blah/httpdocs/store/system/library/image.php on line 45
Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/httpdocs/store/catalog/model/tool/image.php on line 23
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/blah/blah/httpdocs/store/image/cache/data/demo/hp_logo-80x80.jpg' for writing in /blah/blah/httpdocs/store/system/library/image.php on line 45
Now I have just done "chmod 0777 image/cache/data"
...
Then I refreshed the store front page... and the warnings are gone, and the images are displaying nicely now.

Newbie

Posts

Joined
Tue Sep 11, 2012 7:39 pm

Post by Saudi Bee » Thu Dec 06, 2012 6:06 pm

luisramalho wrote:Make sure the folder image / cache / data is writtable.
Your clear, short and direct answer which I discovered after 14 hours of work and little tears.. Helped me a lot and made great impact on me ..I AM unable to thank you in a way that best describe my gratitude. speechless

New member

Posts

Joined
Sat May 19, 2012 5:09 pm

Post by mh922 » Mon Dec 24, 2012 4:17 am

please assist. i was trying to do what is on this page http://www.opencartnews.com/tutorials/c ... mment-1872

and i kinda messed up the entire site. i get a code like this at the top of all my pages:


public function getRProducts($data = array()) { if ($this->customer->isLogged()) { $customer_group_id = $this->customer->getCustomerGroupId(); } else { $customer_group_id = $this->config->get('config_customer_group_id'); } $cache = md5(http_build_query($data)); $product_data = $this->cache->get('product.' . $cache . '.' . $customer_group_id); if (!$product_data) { $sql = "SELECT *, p.product_id, (SELECT AVG(rating) AS total FROM " . DB_PREFIX . "review r1 WHERE r1.product_id = p.product_id AND r1.status = '1' GROUP BY r1.product_id) AS rating FROM " . DB_PREFIX . "product p LEFT JOIN " . DB_PREFIX . "product_description pd ON (p.product_id = pd.product_id) LEFT JOIN " . DB_PREFIX . "product_to_store p2s ON (p.product_id = p2s.product_id) WHERE pd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '" . (int)$this->config->get('config_store_id') . "'"; $sql .= " GROUP BY p.product_id"; $sort_data = array( 'pd.name', 'p.model', 'p.quantity', 'p.price', 'rating', 'p.sort_order', 'p.date_added' ); $sql .= " ORDER BY Rand()"; if (isset($data['order']) && ($data['order'] == 'DESC')) { $sql .= " DESC"; } else { $sql .= " ASC"; } if (isset($data['start']) || isset($data['limit'])) { if ($data['start'] < 0) { $data['start'] = 0; } if ($data['limit'] < 1) { $data['limit'] = 20; } $sql .= " LIMIT " . (int)$data['start'] . "," . (int)$data['limit']; } $product_data = array(); $query = $this->db->query($sql); foreach ($query->rows as $result) { $product_data[$result['product_id']] = $this->getProduct($result['product_id']); } $this->cache->set('product.' . $cache . '.' . $customer_group_id, $product_data); } return $product_data; }



please assist. thanks

Newbie

Posts

Joined
Mon Dec 24, 2012 4:10 am

Post by inetwiz » Mon Jul 22, 2013 11:19 pm

Now I have just done "chmod 0777 image/cache/data"

Thanks...

Newbie

Posts

Joined
Wed Mar 14, 2012 10:40 pm
Who is online

Users browsing this forum: No registered users and 2 guests