DragonflyCMS Projects > BizStore > [fixed] Changing Associates ID US > Community Forums > Phoenix Netology
[fixed] Changing Associates ID US
Reply to topic
Dizfunkshunal
Offline
Joined: May 27, 2007
Posts: 69
0 👍
/
0 👎
Wed Oct 05, 2011 11:27 pm
Hello, been awhile. Ok installed DF 9.3 and Amazon(Bizstore) 9.3 Everythnig works fine except I cant change Associates ID US. Changed the keys just fine no problem. just the Id wont change when i click update. No errors are showing either. Any Ideas?
DizWebDesign
Please enter your server specs in your user profile ! 😢
Phoenix
Offline
Joined: Mar 18, 2004
Posts: 1543
Location: Netosphere
0 👍
/
0 👎
Wed Oct 05, 2011 11:51 pm
yep, sorry about that - replace line 20 of admin/index.inc
$sections = array('bizstore' => array('googleads', 'googleadclient','locale', 'assocIDus', 'assocIDca', 'assocIDujk', 'assocIDde', 'assocIDfr', 'assocIDjp', 'accessID', 'secretID', 'showBuyCart', 'cookie', 'welcome', 'welcomeMSG', 'mainpage', 'mainpageIndex', 'mainpageNode', 'pcActive', 'pcID')
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Dizfunkshunal
Offline
Joined: May 27, 2007
Posts: 69
0 👍
/
0 👎
Thu Oct 06, 2011 12:17 am
np When I replace that line 20 code with the above i get
Parse error: syntax error, unexpected ';', expecting ')' in /home/carlg/public_html/modules/BizStore/admin/index.inc on line 20
When I view Bizstore admin page.
I added the ; to the end
Edit: I use phpdesigner. its saying its a mixed array not sure what that means but hope it helps.
DizWebDesign
Please enter your server specs in your user profile ! 😢
Dizfunkshunal
Offline
Joined: May 27, 2007
Posts: 69
0 👍
/
0 👎
Thu Oct 06, 2011 12:24 am
Got it it need another ")" before the ";" at the end. Thanks a lot!
DizWebDesign
Please enter your server specs in your user profile ! 😢
Phoenix
Offline
Joined: Mar 18, 2004
Posts: 1543
Location: Netosphere
0 👍
/
0 👎
Thu Oct 06, 2011 12:28 am
The extra ) was already on line 21?
• Donations & Audit for DragonflyCMS •
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Dizfunkshunal
Offline
Joined: May 27, 2007
Posts: 69
0 👍
/
0 👎
Thu Oct 06, 2011 4:43 am
not that i seen I compared the new code you gave to the old code it was replacing old code had "));" at the end, new code only had ")"
DizWebDesign
Please enter your server specs in your user profile ! 😢
Phoenix
Offline
Joined: Mar 18, 2004
Posts: 1543
Location: Netosphere
0 👍
/
0 👎
Thu Oct 06, 2011 7:03 am
hmm, original line 20 is:
$sections = array('bizstore' => array('googleads', 'googleadclient','locale', 'assocID', 'accessID', 'secretID', 'showBuyCart', 'cookie', 'welcome', 'welcomeMSG', 'mainpage', 'mainpageIndex', 'mainpageNode', 'pcActive', 'pcID')
replace with, as above:
$sections = array('bizstore' => array('googleads', 'googleadclient','locale', 'assocIDus', 'assocIDca', 'assocIDujk', 'assocIDde', 'assocIDfr', 'assocIDjp', 'accessID', 'secretID', 'showBuyCart', 'cookie', 'welcome', 'welcomeMSG', 'mainpage', 'mainpageIndex', 'mainpageNode', 'pcActive', 'pcID')
line 21 was always:
);
There are only 2 arrays, so only 2 sets of brackets - to use 2 brackets in line 21, you would need to omit the closing bracket in line 20?
Anyway, the main thing is that the problem is fixed
, at least until Amazon change their API again.
I won't be updating the download just yet because I have converted my cvs to DF10.
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Dizfunkshunal
Offline
Joined: May 27, 2007
Posts: 69
0 👍
/
0 👎
Thu Oct 06, 2011 1:27 pm
Cool. I dont know i been out of the game awhile i'm really rusty. Thanks for the fix.
DizWebDesign
Please enter your server specs in your user profile ! 😢
All times are Australia/Adelaide