PrecioGasolina.com - Donde encuentras el Precio de tu Gasolina favorita en Puerto Rico. Home of NukeAmazon
Ahorre hasta un 40% en sus Libros Aqui! Amazon.com

Bienvenido a PrecioGasolina.com Buy Books, Music, DVDs, CDs, VHS Video, Toys, Computers, Software, Baby Products, Magazines and More.
Búsqueda

Tópicos
  Crear Cuenta PrecioGasolina  ·  NukeAmazon  ·  Offers  ·  NukeOverstock  ·  Top 10  ·  Tu Cuenta  
GoogleAds

Menú
· Home
· AllPosters
· Bare Necessities
· Content
· FAQ
· Feedback
· Forums
· Loto y Pega3
· Mondera
· NetMagazines
· NukeAmazon
· Ofertas
· PrecioGasolina
· Reviews
· Search
· Statistics
· Stories Archive
· Surveys
· TigerDirect
· Top
· Topics
· Your Account

Amazon
SanDisk SDCZ4-256-A10 256 MB Cruzer Micro with Skins (Retail Package)
SanDisk SDCZ4-256-A10 256 MB Cruzer Micro with Skins (Retail Package)
Price: $15.27

OverStock Offer

Great Offers
There isn't content right now for this block.

OverStock Item
Blue Deluxe Aluminum Transport Wheelchair-Red Transport Wheelc
Blue Deluxe Aluminum Transport Wheelchair-Red Transport Wheelc

Price: $189.99
You Save: $50.00


Showcase
·Radio Flyer Ultimate Family Wagon $149.63*
·Intel Core 2 Quad Q6600 2.40GHz Socket 775 OEM Processor and a FREE XFX nForce 680i LT SLI NVIDIA Socket 775 ATX Motherboard $499.99*
·Acer Aspire 3003LC1 15.0" Laptop, 1.8 GHz Mobile AMD Sempron Processor 3000+ $628.00*
·TOMTOM ONE XL GPS for only $309*
·Apple 8 GB iPod Touch $299.00*
·J.L. Childress Ultimate Padded Car Seat Travel Bag
·Seagate / Barracuda 7200.10 / 500GB / 7200 / 8MB / Serial ATA-300 / OEM / Hard Drive $99.99*
· Earn Up to 5% Cash Back*
·Michelin X-930 GPS Navigation with 3.5" LCD Screen and SiRF Star III Technology $159.99*
·SHARP LD-23SH1U 23-Inch Widescreen LCD TV $499.99*

read more...

PrecioGasolina.com: Forums

PrecioGasolina.com :: View topic - Problems with PHP 5.1.1
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin 

Problems with PHP 5.1.1

 
Post new topic   Reply to topic    PrecioGasolina.com Forum Index -> NukeAmazon International
View previous topic :: View next topic  
Author Message
picdownloads
Novato
Novato


Joined: Jan 10, 2006
Posts: 3

PostPosted: Tue Jan 10, 2006 6:22 pm    Post subject: Problems with PHP 5.1.1 Reply with quote

Hello,
the Amazon-Module is really fine and it runs without any problems until today. Now, my server has gotten an PHP-Upgrade from 4.3.8. to 5.1.1 and the nice modules is nearly empty, see it at: http://www.picdownloads.de

Also the block, normally shown at the index.php, does not work - sometimes it showes the books, sometimes not all 4 but 3 oder 1 and most of the time it shows nothing! Shocked

Does anybody have an idea how to fix this emptyness? Very Happy
Back to top
View users profile
EJDiaz
Administrador
Administrador


Joined: May 24, 2002
Posts: 295
Location: Florida

PostPosted: Fri Jan 13, 2006 7:40 pm    Post subject: Reply with quote

For this url: /modules.php?name=Amazon&op=click&asin=B000B3KD8K
I got this.
Quote:
Picdownloads: Zugriff verweigert

schnell !
Stop ! - Dir fehlt die Berechtigung, diese Seite anzusehen.

Du hast jedoch folgende Optionen:

* Du bist Mitglied und kannst Dich jetzt hier einloggen.
* Du hast Deine Logindaten verloren. Versuche in diesem Fall, Dir das Passwort zusenden zu lassen.
* Du möchtest Dich gerne ein wenig umsehen - bitte beachte Du als Gast viele Bereiche nicht betreten kannst.

[ Zurück ]


Sorry cant help if I can't get access.
Is the module active?

What do you mean on not showing the books. Is it the images not showning? Sometimes the images are not shown for various reasons but mainly because Amazon returns an invalid image address.

TIP: Use the show XML option and look at the link XML output to see if the items are valid.
_________________
~Edgardo
PrecioGasolina.com | E.J. Stores
Back to top
View users profile Visit posters website
picdownloads
Novato
Novato


Joined: Jan 10, 2006
Posts: 3

PostPosted: Sat Jan 14, 2006 3:30 am    Post subject: Reply with quote

Sorry EJDiaz, now the module is free for all again. Embarassed
The XML is ok and does not show any problems.

Like you will see by visiting the module is, that the content is missing. Between the Amazon-Search and the Categories is nothing! I use the module with all my CPortal (Nuke-) sites, it works at fife several URLs - but its the same problem, the content failed after the PHP-Upgrade to 5.1.1. Crying or Very sad
Back to top
View users profile
jmvedrine
Novato
Novato


Joined: Oct 28, 2003
Posts: 2

PostPosted: Sun Jan 22, 2006 11:05 am    Post subject: Reply with quote

Your problem is that
- php 5.x XML support has been improved an it now correctly detect the data send by Amazon as been UTF-8 encoded because they have the
Code:
<?xml version="1.0" encoding="UTF-8"?>

header. Previously PHP 4.x defaulted to ISO-8859-1 despite the header.
- but the problem is that amazon uk, de, fr don't really encode data as UTF-8, a lot of data are in fact ISO-8859-1 encoded (for instance amazon.co.uk send the pound character as one byte, amazon.fr send all accented characters as one byte)
so the php 5 XML parser is unable to correctly parse the data and the output is empty.

Edgardo, I'm the guy who ported NukeAmazon to PostNuke under the name AmaZone (but retaining your full credits !!)
I would love to discuss this issue and a lot of others (and also share fr and ca sql files with you and NukeAmazon users, it's justice to give back if I can)
You can mail me at vedrine _AT__ vedrine __DOT- net if you want.
Back to top
View users profile
jmvedrine
Novato
Novato


Joined: Oct 28, 2003
Posts: 2

PostPosted: Mon Jan 30, 2006 3:15 pm    Post subject: Reply with quote

I have a temporary fix for this problem.
Don't work for all pages but for quite a lot.
Currently don't work with japanese Amazon webservices
In the file, change
Code:

      $this->records = array();
       
        $this->parser = xml_parser_create();
        xml_set_object($this->parser, $this);
        xml_set_element_handler($this->parser, 'startElement', 'EndElement');
        xml_set_character_data_handler($this->parser, 'cdata');

To:
Code:

       $xml = preg_replace("/([\xC2\xC3])([\x80-\xBF])/e",
                      "chr(ord('\\1')<<6&0xC0|ord('\\2')&0x3F)",
                        $xml);
       $xml = utf8_encode($xml);
      $this->records = array();
       
        $this->parser = xml_parser_create('');
        xml_parser_set_option ( $this->parser, XML_OPTION_TARGET_ENCODING, 'ISO-8859-1' );
        xml_set_object($this->parser, $this);
        xml_set_element_handler($this->parser, 'startElement', 'EndElement');
        xml_set_character_data_handler($this->parser, 'cdata');

This may seems silly as I replace all utf-8 encoded characters with their ISO-6659-1 equivalent and after that re-ncode the whole string as UTF-8 but it works.
It would be a lot better to write a regular expression to encode all characters from the x80-xFF range that aren't preceeded by a xC2 or xC3 char to UTF-8 directly but I am no good enought at regular expressions to do that.
Back to top
View users profile
picdownloads
Novato
Novato


Joined: Jan 10, 2006
Posts: 3

PostPosted: Tue Jan 31, 2006 2:24 am    Post subject: Reply with quote

jmvedrine - you are great - that fixed the problem!

Thank you very much! Very Happy Very Happy Very Happy
Back to top
View users profile
EJDiaz
Administrador
Administrador


Joined: May 24, 2002
Posts: 295
Location: Florida

PostPosted: Fri Mar 24, 2006 8:33 pm    Post subject: Reply with quote

Search for this line in functions.php
Code:
      $temp .= utf8_decode(fread($fp, 4096));

change to
Code:
      $temp .= fread($fp, 4096);

_________________
~Edgardo
PrecioGasolina.com | E.J. Stores
Back to top
View users profile Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    PrecioGasolina.com Forum Index -> NukeAmazon International All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB 2.0.10 © 2001 phpBB Group
phpBB port v2.1 based on Tom Nitzschner's phpbb2.0.6 upgraded to phpBB 2.0.4 standalone was developed and tested by:
ArtificialIntel, ChatServ, mikem,
sixonetonoffun and Paul Laudanski (aka Zhen-Xjell).

Version 2.1 by Nuke Cops © 2003 http://www.nukecops.com

Forums ©

 
PrecioGasolina.com - Donde encuentras el Precio de tu Gasolina favorita en Puerto Rico.
· Quíenes Somos · Términos y Condiciones · Confidencialidad / Privacidad ·
Todos los logos y marcas son propiedad de sus respectivos propietarios.
Los comentarios son propiedad de quien los escribió.
Todo el resto es © por PrecioGasolina.com - Derechos Reservados
· E.J. Stores · Texaco Rio Piedras · Precio Gasolina · The Amazing Store Shopper · Associates PR · BuyBooksDvdsMusic ·
Page Generation: 0.547 Seconds