coppermine-gallery.com/forum

Support => Older/other versions => cpg1.1d PHPnuke Support (deprecated) => Topic started by: regie on October 19, 2003, 08:19:55 AM

Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on October 19, 2003, 08:19:55 AM
Hi,
I'm using CPG 1.1D/phpnuke 6.5/Fiblue 3d theme and am having some trouble... some links point to the main phpnuke page, while others cannot be found. Any suggestions?
TIA
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: kegobeer on October 19, 2003, 04:11:20 PM
How about a link to your site?
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on October 19, 2003, 06:44:29 PM
www.warez-group.com
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: DJMaze on October 19, 2003, 07:58:22 PM
Theme is for Standalone Coppermine not for phpNuke intergration.

Edit the theme.php and correct the links in there.
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on October 19, 2003, 09:58:04 PM
I've had a look at theme.php, and my html/php skills are very limited, so I'm not sure as to which entries to make changes to. Any assistance you might be able to give me would be greatly appreciated.
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: DJMaze on October 20, 2003, 12:05:03 AM
Ok i fast made the changes so here are the 2 edited files for FiBLUE 3D.

- template.html
- theme.php

Just changed the links ???.php to modules.php?name=coppermine&file=???

http://www.mp3tunes.nl/coppermine/fiblue3d.zip

[size=18]Note:[/size] Not tested all links just post a bug here :D
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on October 20, 2003, 12:20:45 AM
Thank you for making the changes. I loaded those files to the coppermine/themes folder and now receive the following error.

Parse error: parse error in /usr/local/apache/htdocs/html/modules/coppermine/themes/fiblue3d/theme.php on line 1430
Template error
Failed to find block 'login'(#(<!-- BEGIN login -->)(.*?)(<!-- END login -->)#s) in :

TIA for all your help.
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: DJMaze on October 20, 2003, 12:31:51 AM
Did you upload the 2 files to the /usr/local/apache/htdocs/html/modules/coppermine/themes/fiblue3d/ so it replaced /usr/local/apache/htdocs/html/modules/coppermine/themes/fiblue3d/template.html
and
/usr/local/apache/htdocs/html/modules/coppermine/themes/fiblue3d/theme.php

????????????????????????

Cos i don't get an error
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on October 20, 2003, 12:43:53 AM
It seems when i tried to upload them on my ftp the first time it didnt over write them... so i deleted those and re-uppped them. So yes, they are working now. THANK YOU!
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on October 20, 2003, 12:56:50 AM
Seems the borders for it got messed up somewhere along the line.. but thats ok, it works great... thank you again for all your help. :D
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: DJMaze on October 20, 2003, 12:58:36 AM
Ah i've found bug, creator of theme forgot to close a table.

Download again and replace template.html (that's the one i edited)
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on October 20, 2003, 01:29:24 AM
You are awesome, it looks great! thank you! thank you! thank you!
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on October 20, 2003, 02:25:33 AM
Sorry to be such a bother.. I have one more question...
Under the "Configuration - Coppermine Photo Gallery 1.1.0" menu, the text font color is the same as the background color, therefor I cant see the input, any suggestions?  :roll:
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: DJMaze on October 20, 2003, 03:31:52 AM
Open: modules/coppermine/themes/fiblue3d/style.css

Find and delete:.textinput {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 100%;
        border: 1px solid #A3AAB4;
        padding-right: 3px;
        padding-left: 3px;
        background-color : #DEDEDE;
}

.listbox {
        font-family: Verdana, Arial, Arial, Helvetica, sans-serif;
        background-color : #DEDEDE;
        font-size: 100%;
        border: 1px solid #A3AAB4;
        vertical-align : middle;
}


or change:        background-color : #DEDEDE;
into:        background-color : #003e5e;
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on October 20, 2003, 06:47:47 AM
Thank you DJ, your the best  :D
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on October 20, 2003, 07:11:25 AM
Now I'm getting this error when trying to upload...

Destination directory www.warez-group.commodules/coppermine/albums/userpics/ is not writable by the script !

It appears there is a "/" missing between www.warez-group.com and modules...

Any suggestions?
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: DJMaze on October 20, 2003, 04:06:54 PM
Check if the "modules/coppermine/albums/userpics/" has write access (CHMOD 777 or 766)

If above is ok then:

Open db_input.php and go to line 218 and check if it is exactly like this
               $filepath = $CONFIG['userpics'].(USER_ID+FIRST_USER_CAT);
            // $dest_dir = $CONFIG['fullpath'].$filepath;
                $dest_dir =$filepath;


else

Post a sceencapture of your //www.warez-group.com/modules.php?name=coppermine&file=config

I think you forgot a slash in the configuration itself.
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on October 20, 2003, 07:46:28 PM
Hi DJ,
I did as you suggested and "modules/coppermine/albums/userpics/" permissions are correct. I also checked db_input.php on line 218, and it is as you posted. You were right, it didnt have the path typed correctly in my config file. So now the path is correct, but I'm getting this error:

Failed to create directory www.warez-group.com/modules/coppermine/albums/userpics/10007 !

Warning: mkdir(www.warez-group.com/modules/coppermine/albums/userpics/10007): No such file or directory in /usr/local/apache/htdocs/html/modules/coppermine/db_input.php on line 222

I posted the screenshots at www.warez-group.com/screenshots.htm

TIA
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: DJMaze on October 20, 2003, 09:57:01 PM
sorry but your screen capture didn't had the part i needed so here my solution:

- go to coppermine config screen
Pictures and thumbnails advanced settings:
- The album directory = modules/coppermine/albums/
- The directory for user pictures = modules/coppermine/albums/userpics/

NOT www.something before those settings
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on October 20, 2003, 10:20:07 PM
Hello again, i went to config and changed those fields as you suggested.. and after all we've done the past two days, check this error out:

PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed

 :roll:

Is there a work around for this issue, as it is not installed, nor will it be...
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: kegobeer on October 20, 2003, 11:12:30 PM
If you (or your webhost if your site is hosted elsewhere) won't recompile php with GD support, or won't install ImageMagick, you're out of luck.  CPG needs GD or ImageMagick to function correctly.  I remember people creating the thumbs themselves and uploading them, but I can't remember exactly what was done.  I think just create the thumbs and intermediate pics, prefix them with thumb_ or normal_, and upload the original, thumb, and normal to the directory you use as an admin to do the batch upload.  CPG should find the required files already created and add them to the db just fine.

Make sure you create your intermediate and thumb pics to the size you enter in the config options.

Unfortunately without image support, your users won't be able to upload pics themselves, they'll have to send them to you for the above process.
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on October 21, 2003, 12:22:17 AM
Thank you for your help  :D
Title: Page Cannot be found Error CPG 1.1D/php 6.5
Post by: regie on November 05, 2003, 04:30:23 AM
Hello again, I got Image Magick installed on my site, and now I'm receiving the following error. If you could assist me I would sincerely appreciate it . Here's the error/error's: :?

The picture 'modules/coppermine/albums/userpics/10007/antivirus~6.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 1

Cmd line :
/root/ImageMagick-5.5.6/utilities/convert -quality 80 -antialias -geometry 100x75 'modules/coppermine/albums/userpics/10007/antivirus~6.jpg' 'modules/coppermine/albums/userpics/10007/thumb_antivirus~6.jpg'

The convert program said:
/root/ImageMagick-5.5.6/utilities/convert: No decode delegate for this image format (modules/coppermine/albums/userpics/10007/antivirus~6.jpg) [Invalid argument].

File: /usr/local/apache/htdocs/html/modules/coppermine/db_input.php - Line: 302

Debug info:

USER:
Array
(
    [ID] => 62f20d3e73e069055d78f674138e1a1d
    [am] => 1
)

 
GET :
Array
(
    [name] => coppermine
    [file] => db_input
)

 
POST :
Array
(
    [event] => picture
    [album] => 3
    [MAX_FILE_SIZE] => 1048576
    [title] => test
    [caption] => test
    [keywords] =>
    [user1] =>
    [user2] =>
    [user3] =>
    [user4] =>
)