By Martin Lines on Friday, 02 June 2017
Posted in Technical Issues
Likes 0
Views 741
Votes 0
My site http://www.2499atc.org was working fine, collecting tweets with #team2499 in the text and publishing them to Easyblog.

I have upgrade the site to PHP 7.1 and everything is working except the microblogging.

THe cron script runs and retrieves the tweet AND publishes it to Easyblog but 5 minutes later it does the same again and again, continually publishing the last tweet everytime the cron job runs.

When I manually call the script using http://www.2499atc.org/index.php?option=com_easyblog&task=cron&debug=1

it gives an Error 500 in some browsers and in others I see the words

0 - Call to a member function find() on boolean

So the script seems to be crashing out before completing.
Hey Martin,

Can you update your Joomla backend and FTP access at http://stackideas.com/dashboard/site so we can better have a check?
·
Friday, 02 June 2017 10:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Site information updated
·
Friday, 02 June 2017 14:15
·
0 Likes
·
0 Votes
·
0 Comments
·
it seems like I hitting this when i login from your backend, can you activate that user account from your backend?

Warning
Login denied! Your account has either been blocked or you have not activated it yet.


By the way, it would be best if you can setup FTP user account for us is because there got risk if modify the file through your Joomla backend file manager page, if modify wrong file or wrong php syntax, it will cause me unable to access backend the file from your backend to revert back the changes.
·
Friday, 02 June 2017 16:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Login now enabled

I do not run FTp for security reasons. Instead I run Webmin on port 10000

Martin
·
Friday, 02 June 2017 17:02
·
0 Likes
·
0 Votes
·
0 Comments
·
I was unable to access your webadmin with the port number, can you try find this file whether exist on your server?

JoomlaFolder/administrator/components/com_easyblog/includes/simplehtml/simplehtml.php
·
Friday, 02 June 2017 17:20
·
0 Likes
·
0 Votes
·
0 Comments
·
I have checked the webmin access on the port using your login and it works fine

http://www.2499atc.org:10000

I can confirm the file simplehtml.php is present
·
Friday, 02 June 2017 17:30
·
0 Likes
·
0 Votes
·
0 Comments
·
You can check my attached screenshot below, this is what i hitting :

This page isn’t working

http://www.2499atc.org didn’t send any data.
ERR_EMPTY_RESPONSE


I suspect your server already blocked other country IP address access your site.

is it possible add my current IP address into your server whitelist and see if we can access?

175.139.128.56

I can confirm the file simplehtml.php is present

Hm, that was strange, because based on what i see, it seems like that error is referring this function unable to get call.
screenshot : http://take.ms/NwBIB
·
Friday, 02 June 2017 18:24
·
0 Likes
·
0 Votes
·
0 Comments
·
I cannot see a specific block on the country or IP level (although my server does have that capability)

I have now whitelisted malayasia and 175.139.128.56

Martin
·
Friday, 02 June 2017 18:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, I still unable to access it

Currently I am not really sure why your site hitting this error unless I can access your webadmin then troubleshoot this issue on your site.

For now, can you try temporary comment out these 2 code and see how it goes? You can check my attached screenshot below.

JoomlaFolder/administrator/components/com_easyblog/includes/post/post.php LINE 2873
·
Friday, 02 June 2017 23:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi

I think I have found the blocker that was stopping webmin access, should work now.

I have also commented out those lines and it now works ok. I have left them commented out and turned back on the cron job to see if it is ok when run automatically rather than debugging from the browser.

Martin
·
Friday, 02 June 2017 23:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Perhaps you can let me troubleshoot first before you turn on back the cronjob, because i can access your webmin now.
·
Friday, 02 June 2017 23:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok - its disabled
·
Friday, 02 June 2017 23:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, something is strange, now when i access that cron URL, no longer hit that error even i revert back the original code, can you give it a check again?
·
Saturday, 03 June 2017 00:38
·
0 Likes
·
0 Votes
·
0 Comments
·
I get the same error again.

Remember it seems to need a tweet to collect to provoke the problem. I have put in a tweet and it has occurred. Once it hs run successfully through the code (with the affected bit commented out) then it seems to set a marker that means it does not try to retrieve the same tweet again?
·
Saturday, 03 June 2017 00:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

It might be because of this reason, is it can put a new tweet from your Twitter account, then update me again? I would like to troubleshoot this issue again.
·
Saturday, 03 June 2017 13:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Arlex

No problem, I understand its the weekend

A new tweet has been posted

Martin
·
Saturday, 03 June 2017 14:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for understand.

So strange, one of the php constant return this value "Maximum file size to be scanned" so causing this issue, by right it should return '6000000' which we defined on the PHP file.

For now I've temporary change this MAX_FILE_SIZE value to 6000000 from this file JoomlaFolder/administrator/components/com_easyblog/includes/simplehtml/simplehtml.php , it should work fine now.

But I feel very curious why it return this "Maximum file size to be scanned" instead of the 600000 value.
Can you add 1 more time tweet from your Twitter, I would like to test whether some of the 3rd party plugin cause this issue or not.
·
Saturday, 03 June 2017 17:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Arlex

I have added another tweet

I have seen some discussions on Max File Size and PHP7.1 on the Internet

Martin
·
Monday, 05 June 2017 02:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Martin, I think it will not related either you using PHP 7.1 or PHP 5.x, I found out this 3rd party plugin causing this issue System - Centrora Security Activation Plugin, if i disabled it, it will work correctly then fetch the tweet to Easyblog.

It would be best if you can consult with this 3rd party developer regarding this.

You can share this following point to them and see how it goes.

Based on what my troubleshoot, i noticed when we define this 'MAX_FILE_SIZE' to 6000000 value :

define('MAX_FILE_SIZE', 6000000);

But it return to us this sentences "Maximum file size to be scanned".
·
Monday, 05 June 2017 11:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, I have logged it with the plugin supplier
·
Tuesday, 06 June 2017 17:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Alright, keep us updated then.
·
Tuesday, 06 June 2017 17:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Centrora have identified that a recent patch is re-defining one of the system variables. They have corrected this as everything is now working fine

Thanks

Martin
·
Thursday, 22 June 2017 15:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Thursday, 22 June 2017 15:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post