× Joomla Facebook Connect support forum

Topic-icon Facebook problems last few days?

Active Subscriptions:

None
10 years 5 months ago #39148 by dageke
So, I keep checking this thread daily (because your notification does not work). Let me just ask you some questions:

Our developer has quit. How long can I rely on using 1.5 before I upgrade? (It’s working fine for our needs).

The developer said it was a big job to upgrade to 2.5. Is this true, in general?
The topic has been locked.
Support Specialist
10 years 5 months ago #39175 by alzander
Dag,
I've tried to 'force' a subscription for your account to this thread. Hopefully, you'll get the email after I post this, and future emails.

For the logging, please edit the /components/com_jfbconnect/controllers/social.php file. In there, you'll find a "commentCreate" function around line 20. Please update that whole function with the following code:
function commentCreate()
    {
jimport('joomla.error.log');
$log = &JLog::getInstance('com_jfbconnect.comments.log.php');
$log->addEntry(array('comment' => 'New comment detected');
        $jfbcLibrary = JFBConnectFacebookLibrary::getInstance();
        $configModel = $jfbcLibrary->getConfigModel();

        $href = JRequest::getVar('href');
        $href = urldecode($href);

        $title = JRequest::getVar('title');
$log->addEntry(array('comment' => 'URL: ' . $href . ', title: ' . $title);

        // Assign alpha user points, if enabled
        $this->rewardAlphaUserPoints($configModel->getSetting('social_alphauserpoints_enabled'), $href, 'comment');

        // Check if admin email should be sent
        if (!$configModel->getSetting('social_notification_comment_enabled'))
{
$log->addEntry(array('comment' => 'Comment notifications are disabled!');
            exit;
}
        //$commentId = JRequest::getVar('commentID');
        // Comment is too unreliable to get immediately (almost never there), so not including it in email for now
        //$comment = $jfbcLibrary->api('/comments/?ids='.urlencode($href));

        $subject = JText::_('COM_JFBCONNECT_NEW_COMMENT_SUBJECT');
        $body = JText::sprintf('COM_JFBCONNECT_NEW_COMMENT_BODY', $this->getPoster(), $title, $href);
$log->addEntry(array('comment' => 'Sending email');

        $this->_sendEmail($subject, $body);
        exit;
    }
All the new changes don't have spaces in the front, so you can either copy each change or copy the whole block of code.

That should create a /log/com_jfbconnect.comment.log.php file and push a lot of information into it for each comment, like:

New comment detected
URL: site.com/link, title: Title of article
Sending email

Each comment should generate those 3 strings. If they are generated, but an email isn't sent, it means that Joomla is likely having issues (though there's a little more logging we can add to verify that). If those lines aren't being generated, or only parts of them are, it means that our code isn't being called or completing for some reason.

Please test and let me know what happens. If the log isn't generated or doesn't have anything, it means that the code above may have a bug and we'll need to re-test it.

Our developer has quit. How long can I rely on using 1.5 before I upgrade? (It’s working fine for our needs).
The developer said it was a big job to upgrade to 2.5. Is this true, in general?

That's a tough question. Joomla 1.5 is already past End of Life and is no longer being developed or even supported by Joomla.org. There was a security issue in Joomla 1.5.26 that was discovered late last year and only patched by the community ( see here to get an unofficial patch ). if other security issues are found, they may never be patched and it likely won't be as widely announced to make sure everyone knows to update.

The move to Joomla 2.5, unfortunately, can be difficult. It depends on the extensions and features of Joomla you're using. There are migration tools that make things easier, but they usually don't do everything. For JFBConnect, you simply need to copy over a few database tables from your Joomla 1.5 site to Joomla 2.5 and the install the Joomla 2.5 version. Other extensions aren't as simple.

Fortunately, the move from Joomla 2.5 to 3.x (and the plan for 3.5 to 4.x) is much simpler. It usually a few hour process, including testing, for good developers if your extensions are supported.

So, I would recommend moving off of Joomla 1.5, but that's a much easier statement to make rather than do.

I hope that helps explain, but if you have any questions, just let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 5 months ago #39178 by dageke
Thanks, Alex. I will test this out.

Now, I’ve noticed one other disturbing thing (If this is also an issue limited to 1.5, I need to upgrade for sure). Hopefully this is something you can easily answer:

When I’m making a comment and check the box “Publish on Facebook” (at least that’s what mine says -- in Norwegian), the comment does NOT appear on my Facebook timeline. How can this be?

(And, yes, I got the notification this time.)

Regards
Dag
The topic has been locked.
Support Specialist
10 years 5 months ago #39199 by alzander
Keep me posted on the logging change. I'd love to hear the results to better understand where the problem is.

When I’m making a comment and check the box “Publish on Facebook” (at least that’s what mine says -- in Norwegian), the comment does NOT appear on my Facebook timeline. How can this be?

This seems to be like an issue with Facebook. We heard a separate report that the Like button (which has a comment box popup) isn't properly posting to Facebook either when used. We're looking into it right now.

In general though, the "Post to Facebook" box is something we have no control over. If it's not working, it wouldn't work on Joomla 2.5+ either. If the problem sticks around for more than 24 hours or so, let us know. I just check the Facebook bug report area and this doesn't seem to have been reported. If you still have the problem though, we'll gladly test ourselves and help you fill out a bug report, if necessary.

Thanks,
Alex
The topic has been locked.