Welcome to Geeklog, Anonymous Tuesday, November 26 2024 @ 10:52 pm EST

Geeklog Forums

Image wont save in images dir


Sandman77

Anonymous
confused
It is set CHMOD 777, still it doesnt save when I upload when creating a story. Sad

I got no darn clue what to do! HELP!

 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 11/06/02
Posts: 523
It is

public_html/images/articles and public_html/images/userphotos that you need to CHMOD not public_html/images/ ??

 Quote

Status: offline

Sandman77

Forum User
Newbie
Registered: 04/05/05
Posts: 3
I have chmodded images 777 and articles 777

my images dir is however located not withing public_html/images

but instead in my website which is all public

:/
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Did you run the check.php script that came with Geeklog? What did it say?

bye, Dirk
 Quote

Status: offline

Sandman77

Forum User
Newbie
Registered: 04/05/05
Posts: 3
Testing logs directory /hsphere/local/home/scolio/underverse.alienphobia.com/logs/ ...
logs directory and the error.log and access.log files are okay.

Testing backend directory /hsphere/local/home/scolio/underverse.alienphobia.com/public_html/backend/ ...
backend directory and the geeklog.rdf file are okay.

Testing userphotos directory /hsphere/local/home/scolio/underverse.alienphobia.com/public_html/images/userphotos/ ...
userphotos directory is okay.

Testing articles directory /hsphere/local/home/scolio/underverse.alienphobia.com/public_html/images/articles/ ...
articles directory is okay.

Testing data directory /hsphere/local/home/scolio/underverse.alienphobia.com/data/ ...
data directory is okay.

Results: 5 of 5 tests performed: 5 successful, 0 failed.

 Quote

Sandman77

Anonymous
sad
*bump* Sad

Problem is when I user the story editor to upload an image it gives me no error message and the image is attached to the story. But when I look in the articles directory there is no image!!!

Sad
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I'm confused - you say your images directory is not in your public_html, but from the output of the check.php script it's obvious they are ...

Anyway, switch on the image upload debugging option in config.php, try again and check your error.log for any insights:

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

Sandman77

Anonymous
Hi Dirk,

thanks for trying to help me. You see my public_html dir is seperate from where config.php is. Im thinking perhaps I should correct this too. I will try what you told me first though...

Thing is where config.php IS my web public dir by default from the server. So I didnt need a seperate public_html.
 Quote

Sandman77

Anonymous
Ok debug showed no error.

I guess all I can do now is move all that is suposed to be in public_html dir into or not? Odd cause there is an images dir there chmodded 7777 too even the articles dir 7777 outta work too no?

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Sandman77: Ok debug showed no error.

Well, I dare say that's impossible. There should either be an error or it should tell you were the images really end up. Check the paths from the log.

bye, Dirk
 Quote

Sandman77

Anonymous
My error.log doesnt show anything but it image tries to be saved here:

http://underverse.alienphobia.com/images/articles/20050408125142598_1.gif

NOT in public_html for some reason...
 Quote

Sandman77

Anonymous
Ok Dirk!

OK the problem is found!

It saves the file under public_html/images/articles

but calls it from /images/articles !!!

How can I change the code to fix this?

In story.php right? Where?
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
This looks like a path problem.

One thing I can think of is that you have two different config.php and so it seems to work, but this is caused by two different directories.

Make sure you only have one lib-common.php and one config.php in your complete site directory public and not public.

Once you are sure about that, do make sure your paths are really correct in config.php.

You really shouldn´t edit story.php !

Best Regards,
Boris
Vanrillaer.com - our Family Portal
 Quote

Sandman77

Anonymous
Hi,

I have only one config.php and one libcommon.php...

I moved all the files from my default "Public" html dir to public_html, fixed it it configs in my mods etc. Now the images are found where they are at!

This is indeed a bug in case you do not call your public dir public_html and put the files in there you want public...

As the scripts tries to find the images automatically in public_html regarding whereever you wanted your images to be stored! Lame!

But hey it works!

Its a deal - shaking hands
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Sandman77: This is indeed a bug in case you do not call your public dir public_html and put the files in there you want public...

No, it's not a bug. It's a case of not having read the installation instructions properly.

Btw, you should really have seen the image upload logged in your error.log. Are you sure that file is writable?

bye, Dirk
 Quote

Sandman77

Anonymous
check.php says so, and I know its chmodded 777 :/

When I install a mod it gets updated etc. Weird.
 Quote

All times are EST. The time is now 10:52 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