Page 1 of 1

Site corrupted and pages don't display.

Posted: Mon Sep 10, 2018 4:30 pm
by norman
Changes at the European Central Bank mean that NorPrice code was poisoning the page and preventing SellerDeck's PHP from running.
This is drastic as SD's PHP is needed to make BlockIf's work amongst many other things.

Fix is (in SellerDeck) go to Design / Library / Layouts / NorPrice / NorPrice Support.
Change the first line from e.g.

Code: Select all

<!-- START NorPrice Support V507 ECB -->
So that the number is 508

Still in NorPrice Support, locate and delete the block of code:

Code: Select all

<!-- Write local JavaScript file (when making store front page) so we always know ECB rate list -->
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsFrontPage%22%20%2f%3e" >
	<actinic:block php="true">
		// V5 - SimpleXML
		// this file returns a JavaScript array and objects containing currency ISO codes, exchange rates and long names
		include_once('norpricenames.php');			// PHP array of ISOnames and their long names
		include_once('norpricegetecbrates.php');	// get ECB rates
		$fw = fopen('norpriceuploadrates.js', 'w');
		fwrite($fw, $jscode);
		fclose($fw);	
	</actinic:block>
</actinic:block>
OK Out.

Then unzip the attached file into your Site folder.
norpricegetecbratesV507A.zip
(806 Bytes) Downloaded 990 times
Finally, close and restart SellerDeck and do a site Update.