February 26, 201313 yr Hey All, Just SVN'd up to the lastest version of NewzNab. Now when I try to run one of the udpate scripts it fails and this appears in the SF web server log: [26-Feb-2013 15:44:15 UTC] PHP Fatal error: Call to undefined function ctype_digit() in /mnt/cache/web/www/lib/Net_NNTP/NNTP/Client.php on line 1079 I also noticed than in the update_scripts it now calls for /usr/bin/php5 - I looked in that folder and don't have a file called php5, just php which I amended it to. Any ideas?
February 26, 201313 yr Author SOLVED - in the SF php.ini the ctype extension is commented out - uncomment and restart web server.
March 19, 201313 yr had the same problem thanks for the post! Below is what your newznab_screen.sh file should look like. Be sure to set export NEWZNAB_PATH="[with your newznab root directory]" #!/bin/sh # call this script from within screen to get binaries, processes releases and # every half day get tv/theatre info and optimise the database set -e export NEWZNAB_PATH="/mnt/cache/appdata/server/misc/update_scripts" export NEWZNAB_SLEEP_TIME="600" # in seconds LASTOPTIMIZE=`date +%s` while : do CURRTIME=`date +%s` cd ${NEWZNAB_PATH} /usr/bin/php ${NEWZNAB_PATH}/update_binaries.php /usr/bin/php ${NEWZNAB_PATH}/update_releases.php DIFF=$(($CURRTIME-$LASTOPTIMIZE)) if [ "$DIFF" -gt 43200 ] || [ "$DIFF" -lt 1 ] then LASTOPTIMIZE=`date +%s` /usr/bin/php ${NEWZNAB_PATH}/optimise_db.php /usr/bin/php ${NEWZNAB_PATH}/update_tvschedule.php /usr/bin/php ${NEWZNAB_PATH}/update_theaters.php fi echo "waiting ${NEWZNAB_SLEEP_TIME} seconds..." sleep ${NEWZNAB_SLEEP_TIME} done
Archived
This topic is now archived and is closed to further replies.