News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Images fail to appear when uploaded through XP Publish

Started by GKB, December 19, 2003, 11:30:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GKB

Hey,

Need some assistance with a dilemma we're having. Basically, the hosts moved us recently, so everything basically got reset.

Ever since then I've been unable to upload images both through XP Publish, but also individually via the Control Panel.

When using XP Publish, it says they've been uploaded, but they fail to appear.

http://images.n-gamer.com/gallery/

And when using the upload picture link I get the following message:

Destination directory albums/userpics/10001/ is not writable by the script !

Do I need to CHMOD again or something?

Any help would be greatly appreciated.

- Rich

Joachim Müller

Quote from: "GKB"Do I need to CHMOD again or something?
yes, seems like your webhost has reset all permissions on your webspace (or hasn't bothered to migrate them as well). CHMOD is the solution.

GauGau

GKB

Thanks for your help, but strangely, I just checked, and both the albums and include folders are already CHMODDED to 777. Any more ideas?

Joachim Müller

might as well be 755 you have to set it to (depending on your server config). Make sure the CHMOD command also is executed for all subfolders...
Just try CHMODing once more, just to make sure.

GauGau

GKB

Just tried CHModding again, still no luck. Man I have no idea what's up. :(

hyperion

"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)

GKB


Joachim Müller

  • log in as admin
  • admin mode
  • config
  • scroll down to the very bottom
  • "Enable debug mode" - "yes"
  • "save new configuration"[/list:u]

GKB

Ok here's the debug info when attempting to upload an image through the admin cp:

USER:
Array
(
    [ID] => f379d390b6f6180f80087c58fd4ba75a
    [am] => 1
    [liv] => Array
        (
           
  • => 2554
  • [1] => 724
                [2] => 675
            )

    )

     
    GET :
    Array
    (
    )

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

     
    And this as well:

    Destination directory albums/userpics/10001/ is not writable by the script !

    File: /home/ngamer/public_html/images/gallery/db_input.php - Line: 225

    Hope that helps, if anyone thinks they can help I can PM you FTP details etc if necesarry.

Joachim Müller

is your server running in safe mode? There might be a permission issue (uid!) connected to safe mode...
Refer to the coppermine documentation for details on safe mode...

GauGau

GKB

Thank you, you are a saviour!

All is well, much appreciated. But now that I added that line to the config file, the tables have gone screwy. Any ideas why?

e.g. http://images.n-gamer.com/gallery/index.php?cat=2

Joachim Müller

switch off debug_mode again and you should be fine...

GauGau

GKB

Wow, thanks GauGau, you're my own personal Jesus Christ!