Author Topic: Blank wxindex.php  (Read 1220 times)

0 Members and 1 Guest are viewing this topic.

Offline mickopla

  • Forecaster
  • *****
  • Posts: 358
    • Waterford City Weather
Blank wxindex.php
« on: March 15, 2018, 06:14:54 PM »
I've been running the Saratoga script for many years now. Recently i decided to set up my own apache2 server.
All went ok with getting the server up and running and ive installed all the necessary script files in the html folder. The checkserver.php script tells me php is installed and working but when i try to load the wxindex.php its blank. Any ideas where to start the trouble shooting process???

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Blank wxindex.php
« Reply #1 on: March 15, 2018, 09:37:59 PM »
Best to start with the error_log for the local server .. it will indicate where the fatal error is located.  It could be a missing part of the PHP installation in your local server.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mickopla

  • Forecaster
  • *****
  • Posts: 358
    • Waterford City Weather
Re: Blank wxindex.php
« Reply #2 on: March 16, 2018, 06:41:16 PM »
Checked the error log and i'm getting an error on line 106 of the flyout-menu.php file.
that line says $xml_parser = xml_parser_create();
Do i need to change anything with that line?


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Blank wxindex.php
« Reply #3 on: March 16, 2018, 07:51:53 PM »
Your local server likely doesn't have the simple XML functions enabled.. don't change the script.. update the PHP enabling the needed features.

You can use check-fetch-times.php?show=info on your site to show if the needed functionality in PHP is enabled.  A working version would look like this
Quote
check-fetch-times.php Version 1.21 - 28-Feb-2018
Website PHP information

Webserver OS: Linux s19486853.onlinehome-server.com 2.6.32-042stab127.2 #1 SMP Thu Jan 4 16:41:44 MSK 2018 x86_64
PHP Version: 7.2.3
Document root: /var/www/vhosts/s19486853.onlinehome-server.com/httpdocs/wx
allow_url_fopen = ON
allow_url_include = off
Stream support for http is available
Stream support for https is available
Streams supported: compress.bzip2, compress.zlib, data, file, ftp, ftps, glob, http, https, phar, php, zip
Status of needed built-in PHP functions

function simplexml_load_file is available
function iconv is available
function json_decode is available
function curl_init is available
function curl_setopt is available
function curl_exec is available
function curl_error is available
function curl_close is available
function curl_getinfo is available
function imagecreatefrompng is available
function imagecreatefromjpeg is available
function imagecreatefromgif is available
class Imagick is available (but is not required/used by the Saratoga templates)
Current required cURL features status:
cURL version: 7.19.7
cURL SSL version: NSS/3.27.1
cURL libz version: 1.2.3
SSL is available
LIBZ is available
cURL protocols supported: dict, file, ftp, ftps, http, https, ldap, ldaps, scp, sftp, telnet, tftp

Current GD (image handling functions) status:

    GD support: is available.
    GD Version: bundled (2.1.0 compatible)
    FreeType Support: is available
    FreeType Linkage: with freetype
    GIF Read Support: is available
    GIF Create Support: is available
    JPEG Support: is available
    PNG Support: is available
    WBMP Support: is available
    XPM Support: is available
    XBM Support: is available
    WebP Support: is NOT available
    BMP Support: is available
    JIS-mapped Japanese Font Support: is NOT available
If any in the first part are marked as 'NOT available', that's a PHP setup issue you'll need to resolve.  In the GD set, only GIF, JPEG and PNG are needed.. the others are optional (and not used by the Saratoga templates).
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mickopla

  • Forecaster
  • *****
  • Posts: 358
    • Waterford City Weather
Re: Blank wxindex.php
« Reply #4 on: March 17, 2018, 08:20:51 AM »
Thanks Ken
Will have a look

Offline mickopla

  • Forecaster
  • *****
  • Posts: 358
    • Waterford City Weather
Re: Blank wxindex.php
« Reply #5 on: March 17, 2018, 08:44:54 PM »
Seems like Curl is my problem. I have it installed and am tying to enable without success. Why dont they have all this stuff installed and active as default. Very frustrating to deal with Linux sometimes.

 Status of needed built-in PHP functions
function simplexml_load_file is available
function iconv is available
function json_decode is available
function curl_init is NOT available
function curl_setopt is NOT available
function curl_exec is NOT available
function curl_error is NOT available
function curl_close is NOT available
function curl_getinfo is NOT available
function imagecreatefrompng is available
function imagecreatefromjpeg is available
function imagecreatefromgif is available
class Imagick is NOT available (but is not required/used by the Saratoga templates)

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Blank wxindex.php
« Reply #6 on: March 17, 2018, 10:05:08 PM »
You may just have to enable the curl plugin to PHP in the master php.ini .. it may be as easy as adding
Code: [Select]
; Enable curl extension module
extension=curl.so
in the proper place in the master php.ini.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mickopla

  • Forecaster
  • *****
  • Posts: 358
    • Waterford City Weather
Re: Blank wxindex.php
« Reply #7 on: March 18, 2018, 05:53:43 PM »
Thanks Ken
Fixed the issue by removing a ; which enabled curl in the php.ini
Now to use Weather Display to upload the necessary files to a second server.
Getting there slowly but surely

 

 

anything