General discussion of OpenCATS

Moderators: RussH, cptr13

Forum rules: Just remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but keep comments directed to the topic at hand.
#1272
When I use joomla connectors and apply for a job and after adding all my credentials click "ubmit Applicatioon ow" I get following fatal Error: Cannot redeclare class PHPMailer in ... lib/Mailer.php ...

In Mailer.php if found:
include_once('./lib/phpmailer/class.phpmailer.php');

Of course this is needed if mailer functionality is used from cats itself, so cannot just // it so tried to check whether class exists with following expression:

if (!class_exists('phpmailer')) {
include_once('./lib/phpmailer/class.phpmailer.php');
}

However this always executes include_once...., e.g. check does not work.

Maybe because the execution comes from Joomla connector and not cats itself?!?

Has anybody come accross this problem or even better anyone who can help me to solve this :)

Thanks
Jens
#1279
Hi RussH,
RussH wrote:Hiya jk - let me upload the current code for you (to assembla). It's changed somewhat from what's in there.
That would be great if you could do that.
Have implemented a quick and dirty workaround meanwhile so that my joomla connector works meanwhile but would be nice to use your latest connector.
Just another thing I found out with the current joomla connector (available at assembla): If somebody wants to apply and executes ./com_catsone/models/apply.php most of the libs are missing. So did also a workaround and changed the home path in apply.php before ./lib/Attachments.php file is loaded

For those who are interested in I include the fix, but as mentioned earlier, this is quick and dirty, please excuse i am not a developer (any longer) but can read some code and do few changes.

// jk quick and dirty to avoid double load of phpmailer
$apply_mailer=false;
// jk changes to make lib/Attachments work....
//saves our current working directory to a variable
$oldcwd = getcwd();
$newdir='<complete_path>/cats/';
chdir($newdir);
// jk quick and dirty to avoid double load of phpmailer
$apply_mailer=true;
# include_once(JPATH_COMPONENT.DS.'lib'.DS.'Attachments.php');
# jk changed above line to:
include_once('./lib/Attachments.php');
//jk change the cwd back to the old value to not interfere with the script
chdir($oldcwd);

Jens
#1493
RussH wrote:Hiya jk - let me upload the current code for you (to assembla). It's changed somewhat from what's in there. I'm behind in my admin!
Hi RushH; have uploaded the current code to assembla meanwhile :) just curious to restart testing what works on Joomla and what not.
#1646
For those who are interested in I include the fix, but as mentioned earlier, this is quick and dirty, please excuse i am not a developer (any longer) but can read some code and do few changes.

________________
http://www.braindumps.net/HP0-Y49.htm
http://www.checkpoint.com/
http://www.washington.edu/
http://en.wikipedia.org/wiki/Anderson_U ... _Carolina)
Last edited by jonnblaze on 16 Aug 2014, 12:44, edited 3 times in total.
#1647
Hi Johnny,

Very keen to see the joomla module worked on and kept current / improved. How can I help? I have a test joomla site and probably need to update it to version 2.5 or 3 (which will break the existing component / module / etc)

We can go through it and document what breaks / needs fixed?

RussH

Just tested on my local instance - works perfectly[…]

This is the &quot;import from resume&quot;[…]

EMAIL CONFIGURATION

Hi, the email configuration (including different[…]

as the title says...