10 Users Commented In This Post

Subscribe To This Post Comment Rss Or TrackBack URL
david says, September 14th, 2007   

I tried installing this plugin, and got the following error:

Fatal error: Cannot redeclare cjKeyphrases::$requiredDefines in /home/chicanon/public_html/dealfark/wp-content/plugins/alinks/modules/cj/mod.php on line 15

I’m using:
Apache version 2.2.4 (Unix)
PHP version 5.2.3
MySQL version 5.0.27-standard-log
wordpress: 2.2.2

Please let me know if you have a solution.

Sridhar Katakam says, December 24th, 2007   

I get the same.

Fatal error: Cannot redeclare cjKeyphrases::$requiredDefines in /home/.flossie/srikat/scriptful.com/sri-addons/scripts/wordpress/wp-content/plugins/alinks/modules/cj/mod.php on line 15

Sean says, December 31st, 2007   

I took a look at the mod.php code, and it needs to be changed a bit to fix the fatal error. In the /cj/mod.php script, you will see this:

var $name = ‘cj’;
var $requiredDefines = array(’img’);
var $requiredDefines = array(’url’);

It needs to be changed to:

var $name = ‘cj’;
var $requiredDefines = array(’img’, ‘url’);

Sean says, December 31st, 2007   

I took a look at the mod.php code, and it needs to be changed a bit to fix the fatal error. In the /cj/mod.php script, you will see this:

var $name = ‘cj’;
var $requiredDefines = array(’img’);
var $requiredDefines = array(’url’);

It needs to be changed to:

var $name = ‘cj’;
var $requiredDefines = array(’img’, ‘url’);

linking, alinks says, February 27th, 2008   

[...] are other aLinks modules available, including a module that allows you to link to your Commission Junction merchants. If you are a savvy programmer, you might be able to come up with your own module. If you do so, [...]

kch says, April 6th, 2008   

I’m having the same problem…other modules install correctly, but not this one.

ChuckMcB says, May 14th, 2008   

Got the same error myself. The fix seems to be to open the .zip file and edit the file mod.php with a text editor.

Change these lines:

var $name = ‘cj’;
var $requiredDefines = array(’img’);
var $requiredDefines = array(’url’);

To read:

var $name = ‘cj’;
var $requiredDefines = array(’img’,'url’);

Then all seems fine.

HTH

ChuckMcB says, May 14th, 2008   

Got the same error myself. The fix seems to be to open the .zip file and edit the file mod.php with a text editor.

Change these lines:

var $name = ‘cj’;
var $requiredDefines = array(’img’);
var $requiredDefines = array(’url’);

To read:

var $name = ‘cj’;
var $requiredDefines = array(’img’,'url’);

Then all seems fine.

HTH

(ps. couldn’t press the “Sumbit Comment” button here in firefox, IE worked fine)

Jon says, June 27th, 2008   

To fix:
open mod.php in WordPad

change the two lines:
var $requiredDefines = array(’img’);
var $requiredDefines = array(’url’);

to:
var $requiredDefines = array(’img’, ‘url’);

upload mod.php and mod.xml to your directory, …./alinks/modules/cj/

alinks modules says, August 13th, 2008   

[...] Comm&#105ss&#105on &#74unct&#105on [...]

Leave Your Comments Below
Hello, please leave your thought below

Please Note: Each comment will be manually approved by an admin. There is no guarantee that a comment will be posted. Please do not submit the comment multiple times.