Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 12:52 am EST
Geeklog Forums
Problem with story images
anonymous
Anonymous
My images i upload with stories are still broken. The image is being uploaded to ../public_html/images/articles directory. I have changed the config.php file to point to that path. What am I missing here?
12
13
Quote
anonymous
Anonymous
Ok, i uploaded and installed GL, I am using the clean theme. When logged in as admin, I click on contribute to post a story I click on browse to select the image and put the [image 1] in body of the story and click on save as draft - a broken image appears on the story. I looked in the articles dir. and the image is there.
As I stated earlier: I have changed the config.php file to point to that path: .../public_html/images/articles. I also added the img and src codes too. What am I missing here?
As I stated earlier: I have changed the config.php file to point to that path: .../public_html/images/articles. I also added the img and src codes too. What am I missing here?
10
9
Quote
Status: offline
ScurvyDawg
Forum User
Full Member
Registered: 11/06/02
Posts: 523
maybe it should be [image1] not [image 1]
8
10
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by anonymous: I have changed the config.php file to point to that path: .../public_html/images/articles.
The default should have worked just fine.
Quote by anonymous: I also added the img and src codes too. What am I missing here?
Those are not necessary to get the [image1] working.
bye, Dirk
15
12
Quote
not giving up
Anonymous
error.log
Fri Oct 15 01:49:05 2004 - Debug: File size for ilogo.gif is 2568 bytes
Fri Oct 15 01:49:05 2004 - Debug: File, ilogo.gif is of mime type image/gif and IS an image file.
Fri Oct 15 01:49:05 2004 - Debug: in _getImageDimensions I got a width of 60, and a height of 60
Fri Oct 15 01:49:05 2004 - Debug: Max allowed width = 300, Image width = 60
Fri Oct 15 01:49:05 2004 - Debug: Max allowed height = 300, Image height = 60
Fri Oct 15 01:49:05 2004 - Debug: File, ilogo.gif has a width of 60 and a height of 60
Fri Oct 15 01:49:05 2004 - Debug: File, ilogo.gif is of mime type image/gif and IS an image file.
Fri Oct 15 01:49:05 2004 - Debug: in _getImageDimensions I got a width of 60, and a height of 60
Fri Oct 15 01:49:05 2004 - Debug: Max allowed width = 300, Image width = 60
Fri Oct 15 01:49:05 2004 - Debug: Max allowed height = 300, Image height = 60
Fri Oct 15 01:49:05 2004 - Debug: File, ilogo.gif has a width of 60 and a height of 60
Fri Oct 15 01:49:05 2004 - Warning: File #2 on the HTML form was empty...ignoring it and continuing
Fri Oct 15 01:49:05 2004 - Warning: File #3 on the HTML form was empty...ignoring it and continuing
Fri Oct 15 01:49:05 2004 - Warning: File #4 on the HTML form was empty...ignoring it and continuing
Fri Oct 15 01:49:05 2004 - Warning: File #5 on the HTML form was empty...ignoring it and continuing
Fri Oct 15 01:49:05 2004 - Debug: File size for ilogo.gif is 2568 bytes
Fri Oct 15 01:49:05 2004 - Debug: File, ilogo.gif is of mime type image/gif and IS an image file.
Fri Oct 15 01:49:05 2004 - Debug: in _getImageDimensions I got a width of 60, and a height of 60
Fri Oct 15 01:49:05 2004 - Debug: Max allowed width = 300, Image width = 60
Fri Oct 15 01:49:05 2004 - Debug: Max allowed height = 300, Image height = 60
Fri Oct 15 01:49:05 2004 - Debug: File, ilogo.gif has a width of 60 and a height of 60
Fri Oct 15 01:49:05 2004 - Debug: File, ilogo.gif is of mime type image/gif and IS an image file.
Fri Oct 15 01:49:05 2004 - Debug: in _getImageDimensions I got a width of 60, and a height of 60
Fri Oct 15 01:49:05 2004 - Debug: Max allowed width = 300, Image width = 60
Fri Oct 15 01:49:05 2004 - Debug: Max allowed height = 300, Image height = 60
Fri Oct 15 01:49:05 2004 - Debug: File, ilogo.gif has a width of 60 and a height of 60
Fri Oct 15 01:49:05 2004 - Warning: File #2 on the HTML form was empty...ignoring it and continuing
Fri Oct 15 01:49:05 2004 - Warning: File #3 on the HTML form was empty...ignoring it and continuing
Fri Oct 15 01:49:05 2004 - Warning: File #4 on the HTML form was empty...ignoring it and continuing
Fri Oct 15 01:49:05 2004 - Warning: File #5 on the HTML form was empty...ignoring it and continuing
16
13
Quote
anonymous
Anonymous
One other thing to note: After browsing, selecting and saving an image in a story post, the image appears as a hypertext link in the story admin that reads 1312323....gif
When I click on this image link it goes to "cannot display page"
My only thoughts is that this is image problem is a path problem. Should images by default be saved in backend/public_html/images and is it is possibly looking for the images in (document root)/images/articles?
Assistance is appreciated
When I click on this image link it goes to "cannot display page"
My only thoughts is that this is image problem is a path problem. Should images by default be saved in backend/public_html/images and is it is possibly looking for the images in (document root)/images/articles?
Assistance is appreciated
17
12
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Check the HTML source of your site to see where it's expecting the images. The default setting is the "articles" directory in this path:
$_CONF['path_images'] = $_CONF['path_html'] . 'images/';
which translates to /path/to/geeklog/public_html/images/
If you changed that setting, please change it back, as there is a bug in Geeklog 1.3.9 that may cause problems here.
bye, Dirk
$_CONF['path_images'] = $_CONF['path_html'] . 'images/';
which translates to /path/to/geeklog/public_html/images/
If you changed that setting, please change it back, as there is a bug in Geeklog 1.3.9 that may cause problems here.
bye, Dirk
15
15
Quote
anonymous no more
Anonymous
It seems like i have tried everything, twice.
this is my config.php
$_CONF['path_images'] = $_CONF['path_html'] . 'images/';
$_CONF['image_lib'] = '/home/content/l/m/a/lmadysen2/html/backend/public_html/images/articles'; // can be one of 'netpbm', 'imagemagick', 'gdlib'
$_CONF['debug_image_upload'] = true;
--------------
this is my config.php
$_CONF['path_images'] = $_CONF['path_html'] . 'images/';
$_CONF['image_lib'] = '/home/content/l/m/a/lmadysen2/html/backend/public_html/images/articles'; // can be one of 'netpbm', 'imagemagick', 'gdlib'
$_CONF['debug_image_upload'] = true;
--------------
11
14
Quote
Status: offline
tomw
Forum User
Full Member
Registered: 08/12/02
Posts: 300
Did you read the comment for the image_lib line? It says it can be one of 'netpbm', 'imagemagick', 'gdlib'.
You have put a path there.
Just leave it an empty string and see what happens e.g.
$_CONF['image_lib'] = '';
You have put a path there.
Just leave it an empty string and see what happens e.g.
$_CONF['image_lib'] = '';
16
11
Quote
anonymous
Anonymous
Dirk,
Ok, I have found the problem now, I just don't know how to fix it.
you were right, checked html code and sure enough it was looking for image in (root)/images and is saving them to backend/public_html/images.
I ftp'd the image to (root)/images and magic - i have images.
Now what is the source of this problem and how do i fix it. My path info of config.php is above in the previous posts, except:
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';
Ok, I have found the problem now, I just don't know how to fix it.
you were right, checked html code and sure enough it was looking for image in (root)/images and is saving them to backend/public_html/images.
I ftp'd the image to (root)/images and magic - i have images.
Now what is the source of this problem and how do i fix it. My path info of config.php is above in the previous posts, except:
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';
16
8
Quote
anonymous
Anonymous
I think image problem has to do with my installation. The paths are not right or something.
Here is what I did:
Uploaded contents of public_html file in godday root ../../html/
Then I put everything else in .../../html/backend
This seems like this is not right because I am having path problems intalling the forum too.
?
Also
Dirk wrote:
This is what I don't undestand. My GL is expecting to find the image in "webroot .../images/articles
not,
backend/public_html/images/articles
which is what below line is pointing to -
$_CONF['path_images'] = $_CONF['path_html'] . 'images/';
So do I have to move my config.php file to my root and point $_CONF['path and the the $_CONF['path_images'] = $_CONF['path_html'] . 'images/';
Would that point to webroot /images?
Here is what I did:
Uploaded contents of public_html file in godday root ../../html/
Then I put everything else in .../../html/backend
This seems like this is not right because I am having path problems intalling the forum too.
?
Also
Dirk wrote:
Check the HTML source of your site to see where it's expecting the images. The default setting is the "articles" directory in this path:
$_CONF['path_images'] = $_CONF['path_html'] . 'images/';
which translates to /path/to/geeklog/public_html/images/
$_CONF['path_images'] = $_CONF['path_html'] . 'images/';
which translates to /path/to/geeklog/public_html/images/
This is what I don't undestand. My GL is expecting to find the image in "webroot .../images/articles
not,
backend/public_html/images/articles
which is what below line is pointing to -
$_CONF['path_images'] = $_CONF['path_html'] . 'images/';
So do I have to move my config.php file to my root and point $_CONF['path and the the $_CONF['path_images'] = $_CONF['path_html'] . 'images/';
Would that point to webroot /images?
11
10
Quote
anonymous no more
Anonymous
$_CONF['path'] = '/home/content/l/m/a/lmadysen2/html/backend/'
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';
12
12
Quote
anonymous
Anonymous
Guys, this can't be this difficult, help me out here!
my images are being saved to: mygeeklogsite.com/backend/public_html/images/articles
it is looking for the images at:
mygeeklogsite.com/images/articles
How do I fix this?
my images are being saved to: mygeeklogsite.com/backend/public_html/images/articles
it is looking for the images at:
mygeeklogsite.com/images/articles
How do I fix this?
34
14
Quote
Status: offline
ScurvyDawg
Forum User
Full Member
Registered: 11/06/02
Posts: 523
Umm
Not sure but shouldn't it be
$_CONF['path'] = '/home/content/l/m/a/lmadysen2/'
$_CONF['path_html'] = $_CONF['path'] . 'html/';
Not sure but shouldn't it be
$_CONF['path'] = '/home/content/l/m/a/lmadysen2/'
$_CONF['path_html'] = $_CONF['path'] . 'html/';
14
15
Quote
All times are EST. The time is now 12:52 am.
- 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