Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP Error with NewzNab SOLVED

Featured Replies

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?

  • Author

SOLVED  - in the SF php.ini the ctype extension is commented out - uncomment and restart web server.

  • 3 weeks later...

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.