Advertisement:

Author Topic: Modern theme error  (Read 2858 times)

algis777

  • Newbie
  • *
  • Posts: 3
Modern theme error
« on: May 18, 2014, 01:07:02 pm »
Why I'm getting this error message with modern theme? I'm using shared hosting so Safe mode can't be turned off. I'm not getting this error with Bender theme. Is there a solution to this problem?  I can't upload pictures using modern theme.  PHP Version 5.3.3-7+squeeze13 .

Quote
Warning: imagejpeg() [function.imagejpeg]: SAFE MODE Restriction in effect. The script whose uid is 5500 is not allowed to access /tmp owned by uid 0 in /www/algiss/aliuo.lt/oc-includes/osclass/classes/ImageResizer.php on line 167

Warning: imagejpeg() [function.imagejpeg]: Invalid filename in /www/algiss/aliuo.lt/oc-includes/osclass/classes/ImageResizer.php on line 167

Fatal error: Uncaught exception 'Exception' with message '/tmp/phpzqPV2n_normal neegzistuoja!' in /www/algiss/aliuo.lt/oc-includes/osclass/classes/ImageResizer.php:43 Stack trace: #0 /www/algiss/aliuo.lt/oc-includes/osclass/classes/ImageResizer.php(28): ImageResizer->__construct('/tmp/phpzqPV2n_...') #1 /www/algiss/aliuo.lt/oc-includes/osclass/ItemActions.php(1388): ImageResizer::fromFile('/tmp/phpzqPV2n_...') #2 /www/algiss/aliuo.lt/oc-includes/osclass/ItemActions.php(233): ItemActions->uploadItemResources(Array, 56) #3 /www/algiss/aliuo.lt/oc-includes/osclass/controller/item.php(151): ItemActions->add() #4 /www/algiss/aliuo.lt/index.php(99): CWebItem->doModel() #5 {main} thrown in /www/algiss/aliuo.lt/oc-includes/osclass/classes/ImageResizer.php on line 43

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Modern theme error
« Reply #1 on: May 18, 2014, 03:22:06 pm »
Hi,

Well Safe mode is totally obsolete anyways, but you can try another way:

1.- Create a folder "mytmp" in oc-content/uploads with 755 permissions set.

2.- Add this line at the end of your config.php:

Code: [Select]
ini_set('upload_tmp_dir', CONTENT_PATH . 'uploads/mytmp/');
Regards

Aficionado

  • Guest
Re: Modern theme error
« Reply #2 on: May 18, 2014, 04:41:45 pm »
Shared Hosting has nothing to do with Safe Mode.

Use a REAL Hosting company.


frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Modern theme error
« Reply #3 on: May 19, 2014, 02:02:37 pm »
@Aficionado
Maybe I will add some note to my footer not to ask support with low cost hosting, seems that large amount of problems comming from this  :-X

Aficionado

  • Guest
Re: Modern theme error
« Reply #4 on: May 19, 2014, 03:08:05 pm »
@Aficionado
Maybe I will add some note to my footer not to ask support with low cost hosting, seems that large amount of problems comming from this  :-X

Or maybe the Forum admin could make a STICKY with it ? So many posts with problems comming from bad/poor Hosting choices.


algis777

  • Newbie
  • *
  • Posts: 3
Re: Modern theme error
« Reply #5 on: May 27, 2014, 02:01:00 pm »
I agree. I have changed the hosting services and everything works like a charm.

Shared Hosting has nothing to do with Safe Mode.

Use a REAL Hosting company.



Aficionado

  • Guest
Re: Modern theme error
« Reply #6 on: May 27, 2014, 02:05:51 pm »
Great, so now Enjoy Osclass !!!

 ;)