Log in | Register | Lost password

Bottom
Cannot initialize Mediashare module.
  • Posted: 09.06.2006, 18:03
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I have installed the Mediashare module (v1.0.1) but am having troubles initializing it. I see it in the list of modules and it showes as Uninialized. When I click on the Initialize link, it takes me to a blank page and does nothing.

    Is there something I am doing wrong? If you need more info let me know.

    Darth.
  • Posted: 17.07.2006, 21:31
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    i get a fatal error page like this:
    Call to undefined function: pndbgettableoptions() in /web/htdocs/www.domainname.xx/home/sub/modules/mediashare/pninit.php on line 37

    i'm using md-pro
    my site is in a directory like this: www.domainname.xx/sub/index.php
    why .../home/sub?
  • Posted: 12.08.2006, 15:10
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    New install of PostNuke followed by attempt to initialize media share module fails and following error appears


    C:\htdocs\pn\html\modules\mediashare\pninit.php(321): C:\htdocs\pn\html\modules\mediashare\pneditapi.php(83): "Create album" failed: Field 'ms_modifieddate' doesn't have a default value while executing: INSERT INTO pn_mediashare_albums ( ms_ownerid, ms_createddate, ms_title, ms_keywords, ms_summary, ms_description, ms_topicId, ms_template, ms_parentAlbumId, ms_thumbnailsize, ms_viewkey) VALUES ( 2, NOW(), 'Top', '', '', 'This is the top album (of which there can be only one). You can edit this album to change the title and other attributes of it.', 0, 'standard', 0, '100', round(rand()*9000000000000 + 1000000000000))
  • Posted: 13.08.2006, 15:03
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    It may have something to do with having the latest MySQL on this test computer. The error shows a problem with executing SQL.Can't insert a record without filling a field if declared not null. I think that before MySQL must have put default values in if you said not null.

    I edited the pninit.php file and added default values to all of the fields that didn't have one for the tables 'mediashare_albums' and 'mediashare_sources'. Blanks for C and 0 for I. Module then initialised OK.
  • Posted: 13.08.2006, 15:30
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Just uploaded first image. Found had to put in defaults for 'mediashare_media' table. Forgot to mention that this was the default used for the dates '0000-00-00 00:00:00'.
  • Posted: 14.08.2006, 23:32
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    The CVS version should fix this.

Template courtesy of Designs By Darren.