Code: Select all
Fatal error: Cannot redeclare go_newssync() (previously declared in /hsphere/local/home/stevensa/files.stevensantos.com/phpBB2/newssync/inc/go-newssync.php:26) in /hsphere/local/home/stevensa/files.stevensantos.com/phpBB2/newssync/inc/go-newssync.php on line 26
Code: Select all
// make sure we do not define this twice in the newssync_admin area
if (function_exists("go_newssync")) {
return;
}
circusnews wrote: I am playing with NewsSync on a test server (files.stevensantos.com/phpBB2/). I would eventually like to run this mod on my PHPNuke sute (www.circusnews.com), but I wanted to get a feel for it first.
I am using:
- a clean install of phpBB2 2.0.4
- NewsSync for phpBB 1.5.0 RC6
- PHP version: 4.3.4
I have enabled psuedo cron in the common.php file.
Now, I get the following error when ever I try and access any of the management options:
Any ideas?Code: Select all
Fatal error: Cannot redeclare go_newssync() (previously declared in /hsphere/local/home/stevensa/files.stevensantos.com/phpBB2/newssync/inc/go-newssync.php:26) in /hsphere/local/home/stevensa/files.stevensantos.com/phpBB2/newssync/inc/go-newssync.php on line 26
Code: Select all
sync_funcs.php, find:
$sql = "SELECT topic_first_post_id
and replace it to
$sql = "SELECT topic_first_post_id, topic_vote
(space char at the end of the line)
sync_funcs.php, find:
$body = html_to_text($body);
and replace it to:
$body = html_to_text($body);
$topicvote = $topic_data['topic_vote']; // !!!
if ($topicvote == 1) {
$body = "Poll: <insert your forum root url here>/viewtopic.php?t=" . $mytopicid . "\n\n" . $body;
}
jarosciak wrote: Hi all,
I am spending so much time with this you can't imagine and I can't come up with any reasonable answer to this problem.
I had follow the pdf install file and everything is set up.
But, when I click the Status setting, it says "NewsSync is currently not running" so I click the run button which, after a few seconds yields, "NewsSync startup complete, click here to continue" which takes me back to the "NewsSync is currently not running" screen. No topics have been added to my forum where the usenet group is set up to be synched.
I have not yet edited the go-newssync file because I don't know how to find or use CRON.
NewsSync is currently not running
My go-newssync file:
#!/bin/sh
/usr/local/bin/php -q newssync.php $1 $2 $3
Someone already had this problem, but no one posted on how it was resolved.
Please help me with it. I am really lost.
jarosciak wrote: Hi thank you for your answer.
If I hit newssync.php directly from the website it works fine... synchronizes without any problems.
I was able to find the right path to php and replaced it in go-newssync file.
But I am still getting the same error. Well kind of, because if I look at status while I am hitting newssync.php through internet explorer, it shows it works, but if it currently doesn't run from explorer and I just wanted to run it from management screen it wouldn't work. Same problem as last time.
I could keep it like this and run it from time to time manually, but, that is not the best solution, specially for two-way sync.
Hm...
Btw. do you know who made this scrip? I would kiss me. it's amazing piece of work.
jarosciak wrote: Yet, another thing drives me crazy.
When I go to run manually:
http://www.site.com/~dotnetboards.com/n ... wssync.php
it gives me this:
!NewsSync is currently running!
NewsSync for phpBB 1.5.0 RC6
© Copyright 2003 Cooler Climate | www.coolerclimate.com
Warning: NewsSync is already running: stopped
Now, I go to php management screen and I can't stop it. I press stop and nothing happenes. It gives me again the same error.
'Refresh' gives me the samething.
'Force Restart' does nothing. Same error.
Well, number of messages in topics is not changed for last 10 minutes, since I started to have this problem. So now I am really confused.
What should I do? How do I stop the script?
jarosciak wrote: Hi thank you for your answer.
If I hit newssync.php directly from the website it works fine... synchronizes without any problems.
I was able to find the right path to php and replaced it in go-newssync file.
But I am still getting the same error. Well kind of, because if I look at status while I am hitting newssync.php through internet explorer, it shows it works, but if it currently doesn't run from explorer and I just wanted to run it from management screen it wouldn't work. Same problem as last time.
I could keep it like this and run it from time to time manually, but, that is not the best solution, specially for two-way sync.
Hm...
Btw. do you know who made this scrip? I would kiss me. it's amazing piece of work.