Zen Cart Logo
Forums / General Questions / PHP Fatal error: 1:Can't create/write to file '/tmp/#sql_a48_0.MYI' Error 30

PHP Fatal error: 1:Can't create/write to file '/tmp/#sql_a48_0.MYI' Error 30

Views: 1,298

Results 1 to 2 of 2
29 Nov 2012, 11:34 PM
#1
woodlandsprite avatar

woodlandsprite

Zen Follower

Join Date:
May 2006
Posts:
307
Plugin Contributions:
0

PHP Fatal error: 1:Can't create/write to file '/tmp/#sql_a48_0.MYI' Error 30

I'm getting the following error - yesterday my host indicated that the /tmp directory had somehow gotten switched to read-only. They indicated they correct the setup and my site was working fine again.

Today, I went in to update some orders and it seems I managed to trigger this error again.
I checked the /tmp directory permissions and they are set to 0755, so I would think it would be writable.

[29-Nov-2012 22:48:49 UTC] PHP Fatal error: 1:Can't create/write to file '/tmp/#sql_a48_0.MYI' (Errcode: 30) :: select p.products_image, pd.products_name, p.products_quantity, p.products_id, p.products_type, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status
from zen_products_description pd, zen_products p left join zen_manufacturers m on p.manufacturers_id = m.manufacturers_id, zen_products_to_categories p2c left join zen_specials s on p2c.products_id = s.products_id
where p.products_status = 1
and p.products_id = p2c.products_id
and pd.products_id = p2c.products_id
and pd.language_id = '1'
and p2c.categories_id = '92' order by p.products_sort_order, pd.products_name in /ZencartDirectory/includes/classes/db/mysql/query_factory.php on line 120

Has anyone else ever seen this error? It basically results in the following displaying on the cart page when browsing to a product (or while trying to update orders)
"WARNING: An Error occurred, please refresh the page and try again."

(I should probably point out that refreshing the page does nothing to resolve the issue :P )

30 Nov 2012, 12:08 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: PHP Fatal error: 1:Can't create/write to file '/tmp/#sql_a48_0.MYI' Error 30

I would check with your hosting provider again to see if something has changed again ...