Fork me on GitHub

Problems installing Amazone (Newbie)  Bottom

Go to page 1 - 2 - 3 [+1]:

  • Hi,

    I am new to postnuke so hopefully my problem is an easy one.

    I have installed postnuke using fantastico from a shared hosting package. In the docs it says postnuke 0.760 phoenix

    I uploaded Amazone version 1.0 into mysite/modules/amazone

    Then went into Admin on my site and in modules clicked regenerate and Amazone came up in the modules. I then clicked "Activate"

    In blocks i went into main menu>edit under title i put books and under URL i put [AmaZone] and then clicked update.

    When i click on books in menu it says Failed to load module AmaZone

    Any ideas what i'm doing wrong ????? I managed to install pnphBB2 this way but cant figure out why amazone won't install.

    V.Grateful for any Help

    Newbie Newman
  • Hi Newman,

    I played around with this module and I saw the same thing. You probably didn't follow the installation instructions (like me)...
    If you goto Administration -> Modules and you look at the AmaZone entry do you see version number of 0?

    I did and this is how I fixed it:

    Goto to the /modules/AmaZone folder and copy everything from the folder /modules/AmaZone/AmaZone to /modules/AmaZone (one folder up) Now goto Administration -> Modules and click regenerate. You should get a New version installed message next to the AmaZone entry. Click Upgrade and Activate and the module should work as expected.

    And whatever you do: also read the modules/AmaZone/AmaZone/docs/manual.htm icon_wink

    HTH
  • Hi ainigma32,

    There is a god :)

    You were correct on all points. I bet you can guess how happy i am right now.
    Apart from lots of reading....I've gotta pay more attention to detail !!!

    Thanks again ainigma32

    Newman
  • You're welcome
  • ainigma32...

    The joy is short lived.....:(

    In the amazone admin menu when i click on preferences everything is fine but when i click on Add/Remove i get Fatal error: Call to a member function RecordCount() on a non-object in ....admin.php on line 65

    and when i click on Report featured i get Fatal error: Call to a member function RecordCount() on a non-object in....admin.php on line 295


    Have i missed something else?
  • Newman,

    Sorry to hear that. To remedy this you'll have to remove the module and reinstall it. Problem is that if you click the remove link in the Administration -> Modules screen you'll get the message Can't remove module

    So goto the /modules folder and remove the AmaZone folder (copy it to a
    temporary location)
    Next go into the database using something like phpMyAdmin and remove the AmaZone entry from the table prefix_modules (the prefix is sometyhing you chose when you installed PN)
    You can do that either through the phpMyAdmin interface or manually by issueing a SQL query

    Code

    DELETE FROM prefix_modules WHERE pn_name = 'AmaZone';

    Next goto to the Administration panel and click the remove option next to the AmaZone entry.

    Now copy the AmaZone folder back into the /modules folder, goto Administration -> Modules and initialize and activate the module.

    Things should work now.

    Good luck!
  • I had the same exact problem. I did not have to do the SQL query. I can't remember the exact steps, but I believe I deactivated the module, then copied it to a temp directory, then did the remove module. I put it back, then regenerated and reactivated.

    It sounds like we need to make a suggestion
  • Ainigma32 and Gamers Radio,

    Thanks v.much guys your advice seems to have done the trick :)

    I didnt have to do the SQL query...I followed Gamers instructions, as they seemed easier, and it appears to have worked.

    Hopefully there wont be any problems now.

    I REALLY appreciate the help guys...thanks
  • @Newman: You're welcome

    @GamersRadio: thanks for the tip. I'll keep that in mind.
  • Hi Guys,

    The drama continues...

    Everything looks fine now... but i cant add any products

    When i put in the Ainsi code i get the correct thumbnail of the product and am asked if i want to add the product. When i click on, yes add product, it looks as if things have worked but no products have been added. The statistics show 0 total products.

    Any suggestions ?
  • Hi

    I found a post about the problem i'm having

    http://noc.postnuke.com/forum/forum.php?thread_id=2131&forum_id=929

    Apparently it might have something to do with the hosting company and what they run or restrict on the server.

    I contacted my hosting company. They said they would pass the problem on to a Manager but also stated that in the past they banned postnuke from the servers due to security problems.

    Hopefully i can get this resolved.

    Ainigma 32 and Gamers Radio...thanks for all the help so far

    Newman
  • Newman,
    I am the AmaZone developper, but sorry, I missed that thread icon_redface icon_redface
    You say "When i put in the Ainsi code i get the correct thumbnail" so this is rather good news, because it means that your module DOES communicate with the amazon webservices server !!
    This also means that your problem is definitely not the same as the one in the NOC thread you referenced. This guy was having a problem because fopen was deactivated by its hosting compagny. If fopen was deactivated in your case, the thumb image would not appear. So we can say your problem is elsewhere ...
    Can you check in the database if all the tables were correctly created during module installation ?
    Use phpMyAdmin and verify you have tables with names like:
    pn_amazon_cache
    pn_amazon_catalog
    pn_amazon_department
    pn_amazon_items
    pn_amazon_nodes
    pn_amazon_not_item
    Of course your common prefix may be different from pn_ (for instance nuke_)
    If all or some of these tables are missing, this is the sign something went wrong during module initialization.
    AmaZone initialization contain not only tables creations but also a lot of records creations, depending of your locale (us, uk, de, fr, ca, jp) so you should find approx 16 records in the department table and quite a lot of records in the catalog and nodes tables.
    In any case, let me know, I will try to find the problem because maybe it will help other people.
    Last note: if an hosting compagny say "In the past we banned postnuke from the servers due to security problems" it's time to look for another one.
    To ban a software is an emergency act when the developper team is not responding and quickly providing a fix. This has to my best knowledge never been the case for PostNuke.
    I bet they can't even say when, and what was the problem. I would also be curious to learn the list of banned softwares icon_lol

    --
    Visit my live reef aquarium.

    My Amazon wish list.
  • Newman. I had that problem with my first install. I bet you will find the database tables are not there like JM is suggesting.
  • GamersRadio

    I had the same exact problem. I did not have to do the SQL query. I can't remember the exact steps, but I believe I deactivated the module, then copied it to a temp directory, then did the remove module. I put it back, then regenerated and reactivated.

    It sounds like we need to make a suggestion

    Your way of removing the module will only work if No table were created during the first install. Here is a procedure that will work in all situations
    1. [*:3043508261]deactivate the module,
    2. [*:3043508261]Remove all files in Modules/AmaZone directory,
    3. [*:3043508261]With phpMyAdmin delete all tables with name begining with prefix_amazon_ where prefix is your common prefix (PN, nuke, ...)
    4. [*:3043508261]Going to Administration/modules, remove the AmaZone module
    5. [*:3043508261]Re-upload all AmaZone files to Modules/AmaZone, I suggest to verify that all files were really uploaded, quite a lot of support requests end with "some files were missing",
    6. [*:3043508261]Initialize and activate the AmaZone module again

    I prefer to delete and re-upload files rather than moviing to a temp place just to be sure everything is clean and the procedure is bulletproof.
    The order of the operations in this procedure is important !!!

    --
    Visit my live reef aquarium.

    My Amazon wish list.
  • Hi jmvedrine and Gamers Radio,

    I checked the PHP admin for the tables you mention and they are there ...all 6 of them.
    In the department table it says under indexes cardinality 16 which i assume are the 16 records you mentioned.

    I'll try de activating, deleting, and re uploading everything and see if that does the trick.

    Thanks for the help :)

    I'll let you know how i get on

    Newman

Go to page 1 - 2 - 3 [+1]:

This list is based on users active over the last 60 minutes.