[Solved] I got it up but have a few issues [Solved] I got it up but have a few issues
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved] I got it up but have a few issues

Started by condiman, April 01, 2004, 10:16:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

condiman

I have got my gallery setup but when I try to upload pics it tells me this

Failed to create directory coralforum/ public_html / albumscoralforum/ public_html / userpics10001 !
Warning: mkdir(coralforum/ public_html / albumscoralforum/ public_html / userpics10001): No such file or directory in /home/coralfor/public_html/coppermine/db_input.php on line 222

I have created these folders and I still get this
Please forgive me for my ignorance I am new at this.

hyperion

Were the spaces in your paths in your post there in the error, or did you add them?
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

condiman

Please forgive me for my ignorance I am new at this.

Joachim Müller

Quote from: "condiman"Yes there was
Yes there was what? When a question is asked like "is it option A or option B", you can't reply with "yes".

I guess your problem is related to CHMOD - read the section about CHMOD in the documentation. If this doesn't solve the issue, try silly_safe_mode for a start.

GauGau

Casper

I take this to mean 'yes there were spaces in the error post'.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

condiman

When I am in the admin mode and when I click on the catagory to bring up the albums is it suppose to look like this even tho nothing is in the album.  What I mean is should I see the three options even tho I have nothing in the album.

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.hostedimage.com%2Fis.php%3Fi%3D18369%26amp%3Bimg%3Dalbum_menu.GIF&hash=b5b5f9dd4e69544eaf0fd9574b26279cdab8e43a)

Could this also be a part of my problem
Please forgive me for my ignorance I am new at this.

Casper

Yes, you should see them.  There is a bug in versions 1.2.1 and older, that if the first albums in a category are empty, then this cell is empty.  There is a fix posted, or you can upgrade to 1.3.0, which does not have this bug.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

condiman

I also looked into the file config.inc.php and I did not see the 'SILLY_SAFE_MODE'
Please forgive me for my ignorance I am new at this.

condiman

where is the link to the fix
I do not seem to see it
Please forgive me for my ignorance I am new at this.

Casper

Please see thiin the docs for how to do silly safe mode, http://coppermine.sourceforge.net/manual.php#safe_mode_issues.

The fix for the album problem is simply to put a pic in the first album in the category, or move an album with pics in it to the top of the category.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

condiman

That is part of the problem because there are no pics uploaded yet I will try the silly safe mode and let yall know what happens
Please forgive me for my ignorance I am new at this.

condiman

This is what is in my config.inc.php file nothing that says safe silly mode

<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =                         "localhost";        // Your database server
$CONFIG['dbuser'] =                         "*****";        // Your mysql username
$CONFIG['dbpass'] =                         "*****";                // Your mysql password
$CONFIG['dbname'] =                         "********";        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                "cpg11d_";
?>
Please forgive me for my ignorance I am new at this.

condiman

I also took out those spaces and I get this error

Destination directory coralforum/public_html/coppermine/albumscoralforum/public_html/coppermine/albums/userpics is not writable by the script !


But they are set to 777
Please forgive me for my ignorance I am new at this.

Casper

You have to edit the include/config.php yourself.

Use you editor, such as notepad, to add the line "define('SILLY_SAFE_MODE', 1);" , so your config.inc.php looks like this;

<?php 
// Coppermine configuration file 
define&#40;'SILLY_SAFE_MODE', 1&#41;;

// MySQL configuration 
$CONFIG['dbserver'&#93; = "localhost"; // Your database server 
$CONFIG['dbuser'&#93; = "*****"; // Your mysql username 
$CONFIG['dbpass'&#93; = "*****"; // Your mysql password 
$CONFIG['dbname'&#93; = "********"; // Your mysql database name 


// MySQL TABLE NAMES PREFIX 
$CONFIG['TABLE_PREFIX'&#93; = "cpg11d_"; 
?>


Then upload this to replace your existing file.  If you can then upload ok, this was your problem.  Please report back your results.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

condiman

I have done what you have said and when I am in the Admin mode it will bring up the upload menu but when it trys to upload it give me this error

Destination directory coralforum/public_html/coppermine/albumscoralforum/public_html/coppermine/albums/userpics is not writable by the script !

When I am in user mode it brings up this error

Sorry there is no album where you are allowed to upload pictures
Please forgive me for my ignorance I am new at this.

Joachim Müller

Quote from: "condiman"Destination directory coralforum/public_html/coppermine/albumscoralforum/public_html/coppermine/albums/userpics is not writable by the script !
should be pretty self-explanatory, don't you think? The destination directory is not writable - in other words: the script doesn't have permissions to write to that directory. Permissions - doesn't that ring a bell? I guess not :?
As stated in the documentation, you will have to CHMOD the albums folder with 755 or 777 (depending on your server setup).

GauGau

Casper

Quote from: "condiman"When I am in user mode it brings up this error

Sorry there is no album where you are allowed to upload pictures

This is not an error.  It means you have not created any albums yet that have upload permissions set to allow others to upload.

Create an album, set it permission to allow 'visitors can upload', and then try again.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

condiman

I dont mean to be rude G man but if you have read the preveous posts I have changed them both to 777  :x


Seien Sie bitte eine wenig freundlichere folgende Zeit
Please forgive me for my ignorance I am new at this.

Casper

So this is the situation;
Your albums directory, and all folders in it, are chmod 777.

You config.inc.php has 'SILLY_SAFE_MODE' defined.

And you still cannot upload.

Please turn on 'debug mode' in config, and post the results here when you try to upload.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

some server setups also require you to CHMOD to 755 instead of 777...

GauGau