Welcome to Geeklog, Anonymous Tuesday, April 23 2024 @ 02:38 pm EDT

Geeklog Forums

Big pictures error in add story


Newbie but impruve

Anonymous
confused
Aloha !

When I upload big pictures have got this warnings :

Warning: getimagesize(): open_basedir restriction in effect. File(/var/tmp/phpbv8N2p) is not within the allowed path(s):
(/mnt/ultraweb/g/gi/gikloog/) in /mnt/ultraweb/g/gi/gikloog/gyikloog/system/classes/upload.class.php on line 378

Warning: getimagesize(/var/tmp/phpbv8N2p): failed to open stream: Operation not permitted in
/mnt/ultraweb/g/gi/gikloog/gyikloog/system/classes/upload.class.php on line 378

Warning: getimagesize(): open_basedir restriction in effect. File(/var/tmp/phpbv8N2p) is not within the allowed path(s):
(/mnt/ultraweb/g/gi/gikloog/) in /mnt/ultraweb/g/gi/gikloog/gyikloog/system/classes/upload.class.php on line 378

Warning: getimagesize(/var/tmp/phpbv8N2p): failed to open stream: Operation not permitted in
/mnt/ultraweb/g/gi/gikloog/gyikloog/system/classes/upload.class.php on line 378

Warning: chmod() has been disabled for security reasons in
/mnt/ultraweb/g/gi/gikloog/gyikloog/system/classes/upload.class.php on line 677


I don't figure up where could I fix this problem.

Thank your attention .
 Quote

Status: offline

cadomi

Forum User
Newbie
Registered: 08/22/05
Posts: 5
Location:Chiapaz
Modifica los tamaños en el archivo config.php en la sección de imagenes... trae por default, tamaños pequeños... cambialos de acuerdo atu necesidad... Rolling Eyes
Fraternalmente CaDoMi
 Quote

Newbie but improve

Anonymous
confused
Thank your reply very much, but there is some problem :

- I don't understand Spanish (neither Smile )
- I don't see the key for this problem in config.php
- I leave blank this row in config.php ->
Text Formatted Code
 $_CONF['image_lib'] = '';
 
(I see/find this mean : autoresize pictures)

- I find it in the php-code :

Text Formatted Code
/root/system/classes/upload.class.php

var $_currentFile = array();          // Array

this sets  in 1186 ->   $this->_currentFile = current($GLOBALS['HTTP_POST_FILES']);
 
Array
(
    [name]  => (236).jpg
    [type]  => image/jpeg
    [tmp_name]  => /var/tmp/phpbv8N2p
    [error]  => 0
    [size]  => 35367
)

 


could somebody tell me where get [tmp_name] this : /var/tmp/... Rolling Eyes
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Unless I'm mistaken, the tmp path actually comes from the PHP configuration. Since your server seems to have open_basedir restrictions in effect, this looks like a misconfiguration to me. I.e. your hosting service should either include /var/tmp in the list of allowed directories or they should set things up such that you have a tmp directory under your own "basedir". Try talking to them ...

bye, Dirk
 Quote

Newbie but improve

Anonymous
worried
Aloha !

Is it possible this is the same PHP bug as it reported in the past here :

http://bugs.php.net/bug.php?id=19292
and here :
http://bugs.php.net/bug.php?id=25895
and much other places ? Rolling Eyes

my hosting service have got -> PHP Version 4.3.10
 Quote

LabTech

Anonymous
I am getting this when I try to put in a story with images...

Warning: move_uploaded_file(): Moved: '/var/tmp/phpnvh2Pk' to '/home/eshirtla/public_html/images/articles/20060122185122631_1.jpg' in /home/eshirtla/system/classes/upload.class.php on line 463

Warning: getimagesize(/var/tmp/phpnvh2Pk): failed to open stream: No such file or directory in /home/eshirtla/system/classes/upload.class.php on line 386

Warning: getimagesize(/var/tmp/phpnvh2Pk): failed to open stream: No such file or directory in /home/eshirtla/system/classes/upload.class.php on line 386

Warning: chmod(): No such file or directory in /home/eshirtla/system/classes/upload.class.php on line 666

Help!
My Host is blaming it on the script

The host is on phpMyAdmin 2.6.4-pl2
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by LabTech: The host is on phpMyAdmin 2.6.4-pl2

phpMyAdmin doesn't have anything to do with this ...

Which PHP version are you on? This may have something to do with a problem in certain PHP versions (should have been fixed in 4.4.2). Or try enabling the debug option in config.php and see what that tells you:
Text Formatted Code
// Uncomment the following line if you experience problems with the image
// upload. Debug messages will be added to the error.log file.                
// $_CONF['debug_image_upload'] = true;
 

bye, Dirk
 Quote

LabTech

Anonymous
Sorry guys. What can I say. I am an idiot graphic artist.

PHP 4.4.1
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by LabTechRazzHP 4.4.1

If the debug option didn't provide any further insides, ask your hosting service to upgrade to PHP 4.4.2.

bye, Dirk
 Quote

LabTech

Anonymous
Well, my service won't load 4.4.2.

My service is up in March, so it is time to find another host.
I am useing IPowerWeb.Com.
Any Suggestions? Smile
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 11/06/02
Posts: 523
Hi Dirk I have been trying to assist on this one and have had no success. There is no error in the error log related to this issue and I understand the host will not upgrade PHP for him.

Odd that they refuse to keep php up to date?

Any tips other than change hosts at this point?
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 11/06/02
Posts: 523
Apache version 1.3.34 (Unix)
MySQL version 4.1.14-standard
PHP version 4.4.2
Operating system Linux
Kernel version 2.6.11.12-grsec
Machine Type i686


We moved the site to another server and above are some of the specs on our environment.

I get this error when I enable the advanced editor. I am getting a dozen errors above the editing page that number changes based on the number of images in the article.

Text Formatted Code


Warning: getimagesize(): Unable to access /home/username/public_html/images/articles/20060114233554597_1.jpg in /home/username/public_html/lib-common.php on line 5545



 


The image is there, hence my confusion.

The upgrade to 1.4.0 sr1 went wonderfully, thank you very much.
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 11/06/02
Posts: 523
Nobody has any input??

I am willing to try anything, maybe if it is that there are to many files under his cpanel account then the script for his cafepress integration implimentation needs to be fixed so that he does not require a new script page for every store.

So that he may have seperate stores still but yet only one script file. Maybe thats the answer.

I certainly am not the man for that job but it would be good to know if thats where we need to go next.

This is just wierd.
 Quote

All times are EDT. The time is now 02:38 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content