Log in | Register | Lost password

Bottom
Blocks
  • Posted: 08.09.2003, 12:12
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I have just installed Photoshare on my Postnuke site and it works beatifully. But now I get this error if I try to create a new block:

    Quote

    Fatal error: Cannot redeclare photoshareblockgetfolderselectlist() (previously declared in X:\xxx\modules\PhotoShare\pnblocks\common.php:29)
    Read address of the module hidden by me!


    [Edited on 8/9/2003 by josini]
  • Posted: 09.09.2003, 08:44
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    Quote

    I have just installed Photoshare on my Postnuke site and it works beatifully. But now I get this error if I try to create a new block:

    Quote

    Fatal error: Cannot redeclare photoshareblockgetfolderselectlist() (previously declared in X:\xxx\modules\PhotoShare\pnblocks\common.php:29)
    Read address of the module hidden by me!


    [Edited on 8/9/2003 by josini]


    Jorn: This should be a require_once probably. I'll have a look at it as a.s.a.p
  • Posted: 09.09.2003, 16:30
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Could it be that you have made a backup copy of your Photoshare directory? The PostNuke API cannot handle multiple instances of the same files in the modules directory and this is usually what happens. Please move your eventual backup to some other place.
  • Posted: 09.09.2003, 17:34
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I do not have a backup copy in the modules directory.
  • Posted: 09.09.2003, 19:15
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I have now scanned my site and I only have 2 common.php, which resides in

    Quote

    \modules\PhotoShare
    \modules\PhotoShare\pnblocks
    and they have different filesizes and change-dates.
  • Posted: 09.09.2003, 20:18
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    And I have even tried renaming \modules\PhotoShare\pnblocks to \modules\PhotoShare\pnblocks1 which causes the error to vanish and in my book this isolates the error to PhotoShare... :casstet:
  • Posted: 09.09.2003, 20:21
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I just realised that I didn't enter the full error-text, but here it goes...

    Quote

    Fatal error: Cannot redeclare photoshareblockgetfolderselectlist() (previously declared in X:\xxx\xxx\modules\PhotoShare\pnblocks\common.php:29) in X:\xxx\xxx\modules\photoshare\pnblocks\common.php on line 29
  • Posted: 09.09.2003, 20:31
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Okay - the last one solved it. You have *two* Photoshare installations! One in "photoshare" and one in "PhotoShare" - that doesn't work. Please remove one of the directories.
  • Posted: 14.09.2003, 15:51
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I'm sorry to say - but I do not have two PhotoShare installations.

    Here is a copy of what is inside my modules folder:

    http://div.josini.dk/photoshareblock.jpg
  • Posted: 15.09.2003, 07:29
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    What happens if you rename directory "PhotoShare" to "photoshare"?
  • Posted: 20.09.2003, 09:58
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    When I renamed the directory to "photoshare" then the modules-list indicated that PhotoShare was missing files. Then I removed both photoshare and PhotoShare from the modules list, rebuilt the modules list from files and still same result... :casstet:

    BUT.... then I got an idea... I removed the module, renamed the directory from "PhotoShare" to "photoshare" and rebuilt the modules from the files.. AND voil? now the block works....
  • Posted: 20.09.2003, 21:15
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Now that's just great!

Template courtesy of Designs By Darren.