MDN

Go Back   Mambo - Forums Closed for posting > Mambo 4.5.5 - Stable > General Questions

Reply
 
Thread Tools Search this Thread Display Modes
Old June 19th, 2005, 05:54   #1
jasey
 
Join Date: Jun 2005
Posts: 14
jasey is on a distinguished road
Default Awesom Amazon component loads blank page when menu clicked

Please help! I've set everything up smoothly but when clicking on the new component menu item, the component page loads only the template header and nothing below it - the page is blank!

I had a similar issue on SimpleBoard and ended up having to update a line of code that mentioned version for 4.5.2. Could this be similar?

Also, I've heard rumblings about Awesome being incompatible with PHPAdsNew - can this be true? What do I do now? Mauricio, this is your baby .. are you out there?

PLEASE help.

Thanks!
jasey is offline   Reply With Quote
Old September 30th, 2005, 10:24   #2
urbangal
 
Join Date: May 2005
Posts: 13
urbangal is on a distinguished road
Default

I installed this component this morning. I am also having the same problem; nothing on the frontend. Has this question been answered? I have not found the solution on these forums yet.

Thanks for any help.
urbangal is offline   Reply With Quote
Old November 1st, 2005, 01:57   #3
CodeXPoet
 
Join Date: Dec 2004
Posts: 5
CodeXPoet is on a distinguished road
Default

Had the same problem but now it's fixed.
Your server configuration (php.ini) doesn't allow url fopen (allow_url_fopen is FALSE). That's how it gets information from amazon.

Ask your hosting provider to activate this feature.

If he doesn't, look if CURL php module is installed. I have made a workaround using the CURL library instead of url fopen and it works fine right now. You can see it at http://www.bodytweaking.com in action.

I may post this piece of code later if its still needed.
CodeXPoet is offline   Reply With Quote
Old January 17th, 2006, 15:59   #4
gmar
 
Join Date: Jan 2006
Posts: 1
gmar is on a distinguished road
Default

Hi CodeXPoet,
would you please so kind and post your code to force awesom using curl instead of fopen?
thanks!
gmar is offline   Reply With Quote
Old February 8th, 2006, 06:39   #5
CodeXPoet
 
Join Date: Dec 2004
Posts: 5
CodeXPoet is on a distinguished road
Default

Sorry it took so long, wasn't online for some time. Anyway, the CURL code to fix awesom problem is this. I've copied a piece from parser.class.php beginnign from line 105 or so, so you can locate where it is:
PHP Code:
/**
    * This function handles the parsing of a feed returned by AWS.
    *
    * @param string $url the URL of the feed that has to be parsed.
    * @param string $type the type of request you are making to AWS. This can
    * be either "heavy" or "lite".
    *
    * @return BlendedSearch|ProductInfo an object containing the information
    * returned by AWS.
    *
    * @access private
    */
    
function parse($url$type "lite") {
        global 
$isHeavy$allowsettimelimit;

        if(
$allowsettimelimitset_time_limit(60);

        if(
$type == "lite")
            
$isHeavy false;
        else
            
$isHeavy true;

        
$wait 1;
        
// Downloads response from Amazon
$ch curl_init();
$timeout 0// set to zero for no timeout
curl_setopt ($chCURLOPT_URL$url);
curl_setopt ($chCURLOPT_RETURNTRANSFER1);
curl_setopt ($chCURLOPT_CONNECTTIMEOUT$timeout);
$data curl_exec($ch);
curl_close($ch);
echo 
$file_contents;

        
$tmpDir getAmazoopConfig('temporary_directory');

        
// Creates new temporary filename
        
$tempName tempnam($tmpDir"tmp");
        
// Opens (creates) new tepmorary file for writing
        
$amazonInfo fopen($tempName"w"); 
This should solve the fopen amazon problem. Works perfectly for me.
CodeXPoet is offline   Reply With Quote
Old March 14th, 2006, 19:42   #6
martinincanada
 
Join Date: Dec 2004
Location: Halifax
Posts: 79
martinincanada is on a distinguished road
Default Implementing amazon.ca into Awesome

Hello,

any idea how I can implement amazon.ca?

Thanks

Martin
martinincanada is offline   Reply With Quote
Old March 16th, 2006, 19:01   #7
ejorczyk
 
Join Date: Dec 2004
Posts: 12
ejorczyk is on a distinguished road
Default

Do you PhpAdsNew to display banner ads? I found it's not compatible with Awesom. You need to remove the PhpAdsNew module from the page on which you display Awesom.
ejorczyk is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Released: Awesom!, or Amazon Web Services for Opensource Mambo madd0 Open Source Products for Mambo 62 December 28th, 2006 12:30
Layout of Category to actual content menu page cybermambo General Questions 4 December 30th, 2004 03:51
Sub Menu Links tomhollis General Questions 2 December 1st, 2004 04:21
Back To Top on Page Load Using Wrapper Component? peakoverload General Questions 14 July 6th, 2004 05:32
How to make multiple entries in the menu for a single component? builderchad Custom Development 0 July 6th, 2004 03:40


All times are GMT -7. The time now is 08:15.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.