Welcome, Guest. Please login or register.
Did you miss your activation email?
March 18, 2010, 03:14:40 PM

Login with username, password and session length
Search:     Advanced search
Please Read - How to Get Help!

Participate in the forum and earn Great Rewards!
52071 Posts in 14866 Topics by 127582 Members
Latest Member: skiper43
* Home Help Login Register
+  Joomlashack Customization Forum
|-+  Free Joomlashack Products
| |-+  Free Components & Modules
| | |-+  J!Contact
| | | |-+  Parse Error when choosing registration list
« previous next »
Pages: [1] Print
Author Topic: Parse Error when choosing registration list  (Read 2179 times)
eric.johnson2012
Jr. Member
**
Offline Offline

Posts: 7


« on: October 20, 2009, 09:10:15 PM »

I'm having an issue connecting to iContact (I think)

I get the following error after putting in (and saving) the correct username/password/API Key in the JContact Main Settings. I've reset the API password numerous times with no luck. It looks like a PHP error, but I find it hard to believe that jContact would have a PHP error right out of the box.

Parse error: syntax error, unexpected T_VARIABLE, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in ....site_path..../joomla15/components/com_jcontact/includes/jcontact_api.php on line 7

I plugged the jcontact_api.php file into a php checker and it returns the same error. Dreamweaver also shows that lines 1-16 are:
Quote
Marked Invalid because it's not the correct format for an HTML tag.

Here are the first few lines of the jcontact_api.php file:
Code:
<?php
defined
('_JEXEC') or die( 'Restricted access' );
error_reporting(E_ALL E_NOTICE);
define('STATUS_CODE_SUCCESS'200);
class 
ICJApi
{
    public 
$username;
    public 
$password;
    public 
$api_key;
    public 
$token;
    public 
$seq;
    public 
$base;
    public 
$authenicated;
    public 
$method;
    public 
$api_url;
    public 
$data;
    public 
$appId;

Any and all feedback is helpfull.
« Last Edit: October 20, 2009, 09:14:00 PM by eric.johnson2012 » Logged
Barrie North
Administrator
Hero Member
*****
Offline Offline

Posts: 1181



« Reply #1 on: October 21, 2009, 06:29:08 AM »

Its looking like iContact have changed something on their API. We are investigating...
Logged

eric.johnson2012
Jr. Member
**
Offline Offline

Posts: 7


« Reply #2 on: October 21, 2009, 07:27:53 AM »

Thanks for the quick reply. Let me know what you find out.

-Eric Johnson
Logged
eric.johnson2012
Jr. Member
**
Offline Offline

Posts: 7


« Reply #3 on: October 27, 2009, 05:28:13 PM »

Any update on this? And is anyone else having the same or similar problem?
Logged
Barrie North
Administrator
Hero Member
*****
Offline Offline

Posts: 1181



« Reply #4 on: October 28, 2009, 07:34:33 AM »

We have tested our installs on different sites, and can't duplicate the error.

Talking to a couple of users, its usually because of errors in the password that's being set, iContact in this regard is very confusing.
Logged

eric.johnson2012
Jr. Member
**
Offline Offline

Posts: 7


« Reply #5 on: October 28, 2009, 09:52:59 AM »

Thanks, I just tried reinstalling with no luck. I also created a new iContact account and added the Jcontact to the API just like the directions showed and got the same results.

I just installed joomla on the hosted server a few weeks ago. Below is the system info, can someone let me know if all of this is correct?

System info:
PHP Built on:       Linux infong 2.4 #1 SMP Tue Dec 18 22:34:10 UTC 2007 i686 GNU/Linux
Database Version:    5.0.81-log
Database Collation:    utf8_general_ci
PHP Version:    4.4.9
Web Server:    Apache
Web Server to PHP interface:    cgi
Joomla! Version:    Joomla! 1.5.14 Stable [ Wojmamni Ama Naiki ] 30-July-2009 23:00 GMT
User Agent:    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14 (.NET CLR 3.5.30729)

PHP Settings:
Safe Mode:      Off
Open basedir:    None
Display Errors:    On
Short Open Tags:    On
File Uploads:    On
Magic Quotes:    On
Register Globals:    On
Output Buffering:    Off
Session Save Path:    /tmp
Session Auto Start:    0
XML Enabled:    Yes
Zlib Enabled:    Yes
Disabled Functions:    None
Mbstring Enabled:    Yes
Iconv Available:    Yes
WYSIWYG Editor:    Editor - No Editor
Logged
Barrie North
Administrator
Hero Member
*****
Offline Offline

Posts: 1181



« Reply #6 on: October 29, 2009, 01:34:36 PM »

You must have a minimum of PHP5 installed.
Logged

eric.johnson2012
Jr. Member
**
Offline Offline

Posts: 7


« Reply #7 on: October 29, 2009, 07:48:34 PM »

Thanks again Barrie! My webspace is hosted through 1&1 and .php extensions were defaulting to php 4, so I just had to add a .htaccess file to have it default to php 5.

So PHP 5 is installed, and I had to reinstall the J!Contact Component for it to work. But I got it to connect with the trial account I created. However I'm still receiving Authentication errors (3 of them) with the actual account I'm trying to interface with. So I'm contacting iContact API support to figure out how to fix this.
Logged
Barrie North
Administrator
Hero Member
*****
Offline Offline

Posts: 1181



« Reply #8 on: October 30, 2009, 07:34:20 AM »

Can you post the exact errors and when you get them....
Logged

eric.johnson2012
Jr. Member
**
Offline Offline

Posts: 7


« Reply #9 on: October 30, 2009, 09:24:55 AM »

Here's a screen shot of it.

Logged
Barrie North
Administrator
Hero Member
*****
Offline Offline

Posts: 1181



« Reply #10 on: October 30, 2009, 09:49:37 AM »

I think that occurs when the password is not correct. iContact's API is a little clumsy there. Make sure its set correctly, the API has a different password.
Logged

bborque
Jr. Member
**
Offline Offline

Posts: 3


« Reply #11 on: January 06, 2010, 07:50:43 AM »

The above error is exactly what I am getting. I have used the API password and even changed it multiple times. Still I cannot get it to work. I keep getting the authentication errors just like the picture above. Could iContact have changed the API and now jContact is not compatible?
Logged
eric.johnson2012
Jr. Member
**
Offline Offline

Posts: 7


« Reply #12 on: January 06, 2010, 06:06:10 PM »

Somehow, the problem was in my username. In iContact, when I go to user preferences it showed my username in all lower case. In the JContact Main Settings, it only worked when the first letter of username was capitalized. I have no idea why.
Logged
melissat719
Jr. Member
**
Offline Offline

Posts: 3


« Reply #13 on: January 15, 2010, 12:08:22 PM »

I also figured out that the problem was in my username. Even though it has multiple CAPS in it, I had to put it into main settings as all lowercase. All of a sudden it finally began talking. I can see my lists.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
 

About Joomlashack | Privacy Policy | Terms of Service | Powered by Joomla | Affiliates | Contact Us

Joomlashack designs free and commercial Joomla Templates and Joomla Websites
Learn how to Joomla with our Joomla Tutorials or join our Joomla Template Club
Copyright 2005-2009 Joomlashack. All rights reserved unless otherwise stated.
The Joomla! name is used under a limited license from Open Source Matters.