Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 1 Hour, 58 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

Blank Page
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Blank Page
#4973
Blank Page 2 Years, 3 Months ago  
I got a blank page if the Sourcerer is used with PHP. There is a module (wich is deactivated because I have to work on the site) and a article.

Link: http://joomla-imko.ath.cx (DYN-DNS because it's just running on our local server...)
Article-Link: joomla-imko.ath.cx/de/produkte/umweltmon...g/imko-wetterstation

Completly different Server, same Site: (Seems working)
Another Link: http://ger10-php5.imko.de/ (OLD - ONLINE - VERY VERY SLOW)
On the right you can see the module "IMKO Wetterstation" wich uses Sourcerer and same PHP wich crashes on our devserver. Maybe something crashed while we transfered all the data and sql to the local server?
Another Article-Link: ger10-php5.imko.de/index.php/de/produkte...g/imko-wetterstation
Soulstormer
Posts: 7
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#4980
Blank Page 2 Years, 3 Months ago  
Can't say what is wrong. Probably an error in the php. Try to turn on php error reporting through your htaccess file.

Please see here for more info:
www.nonumber.nl/forum/index.php?action=v...orum=7&topic=905
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#4998
Blank Page 2 Years, 3 Months ago  
Nothing happens if I paste this in my htaccess file, the Code from the Module is:

{source}
    <?php
    if(!$dbconn){
    require "myphpfiles/config.php";
    require "myphpfiles/library.php";
    }
    require "myphpfiles/IMKO_WetterstationModule.php";
    ?>
{/source}

config.php
<?php
function weatherconn(){
    $dbconn = @pg_connect("host=HOST port=PORT user=USER password=PASSWORD dbname=DATABASE");
    
    if (!$dbconn){
        throw new Exception();
    }
    else return $dbconn;
}

try {
    $dbconn = weatherconn();
} catch (Exception $e){ echo "";}
?>

library.php
<?php
if($dbconn){
$starttime = pg_query ("SELECT MAX(starttime) FROM imko.mod_data");
$starttime_fetch = pg_fetch_array($starttime);
$windvelocity = pg_query ("SELECT value,unit FROM imko.v_plot WHERE serno='5032' AND channel='1' AND starttime='$starttime_fetch[0]'");
$windvelocity_fetch = pg_fetch_array($windvelocity);
$globalradiation = pg_query ("SELECT value,unit FROM imko.v_plot WHERE serno='12922' AND channel='1' AND starttime='$starttime_fetch[0]'");
$globalradiation_fetch = pg_fetch_array($globalradiation);
$winddirection = pg_query ("SELECT value,unit FROM imko.v_plot WHERE serno='5524' AND channel='2' AND starttime='$starttime_fetch[0]'");
$winddirection_fetch = pg_fetch_array($winddirection);
$airpressure = pg_query ("SELECT value,unit FROM imko.v_plot WHERE serno='12920' AND channel='1' AND starttime='$starttime_fetch[0]'");
$airpressure_fetch = pg_fetch_array($airpressure);
$relhumidity = pg_query ("SELECT value,unit FROM imko.v_plot WHERE serno='3874' AND channel='2' AND starttime='$starttime_fetch[0]'");
$relhumidity_fetch = pg_fetch_array($relhumidity);
$airtemperature = pg_query ("SELECT value,unit FROM imko.v_plot WHERE serno='3874' AND channel='1' AND starttime='$starttime_fetch[0]'");
$airtemperature_fetch = pg_fetch_array($airtemperature);
$cumulprecipitation = pg_query ("SELECT value,unit FROM imko.v_plot WHERE serno='12921' AND channel='1' AND starttime='$starttime_fetch[0]'");
$cumulprecipitation_fetch = pg_fetch_array($cumulprecipitation);
$precipitation = pg_query ("SELECT value,unit FROM imko.v_plot WHERE serno='12921' AND channel='2' AND starttime='$starttime_fetch[0]'");
$precipitation_fetch = pg_fetch_array($precipitation);
$batteryampere = pg_query ("SELECT value,unit FROM imko.v_plot WHERE serno='5780' AND channel='1' AND starttime='$starttime_fetch[0]'");
$batteryampere_fetch = pg_fetch_array($batteryampere);
$batteryvolt = pg_query (" SELECT value,unit FROM imko.v_plot WHERE serno='5780' AND channel='2' AND starttime='$starttime_fetch[0]'");
$batteryvolt_fetch = pg_fetch_array($batteryvolt);
$volwatercontent = pg_query ("SELECT value,unit FROM imko.v_plot WHERE serno='30272' AND channel='1' AND starttime='$starttime_fetch[0]'");
$volwatercontent_fetch = pg_fetch_array($volwatercontent);
$soiltemperature = pg_query ("SELECT value,unit FROM imko.v_plot WHERE serno='30272' AND channel='2' AND starttime='$starttime_fetch[0]'");
$soiltemperature_fetch = pg_fetch_array($soiltemperature);
$tdrlevel = pg_query ("SELECT value,unit FROM imko.v_plot WHERE serno='30272' AND channel='3' AND starttime='$starttime_fetch[0]'");
$tdrlevel_fetch = pg_fetch_array($tdrlevel);
}else{}
?>

IMKO_WetterstationModule.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IMKO Wetterstation</title>
<link type="text/css" href="/myphpfiles/css/style.css" rel="stylesheet">
</head>
<body>

<?php if($dbconn){ ?>

<div id="mainWeather">
    <div id="dateModule" style="padding-left: 5px;">
        <?php
            echo '<span class="bold">Last Update:<br /></span>'.$starttime_fetch[0].''
        ?>
    </div>
    <div id="pictureModule">
        <a href="index.php/de/produkte/umweltmonitoring/imko-wetterstation" title="IMKO Wetterstation"><img class="Kontu_Rahmen_IMKOgelb" style="margin-left: 9px;" src="images/stories/products/localweather/IMKO_envis_start.jpg" border="0" alt="IMKO_ENVIS" vspace="3" width="160" height="186" /></a>
    </div>
    <div id="titleModule" style=" padding-left: 5px;">
        <span class="titleModule bold"> Wind Velocity:</span><br />
        <span class="titleModule bold"> Water Content:</span><br />
        <span class="titleModule bold"> Soil Temerature:</span><br />
    </div>
    <div id="valueModule">
        <span class="valueModule"><?php echo $windvelocity_fetch[0]." ".$windvelocity_fetch[1] ?></span><br />
        <span class="valueModule"><?php echo $volwatercontent_fetch[0]." ".$volwatercontent_fetch[1] ?></span><br />
        <span class="valueModule"><?php echo $soiltemperature_fetch[0]." ".$soiltemperature_fetch[1] ?></span><br />
    </div>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="background-color: #dfdfdf; padding: 5px;">Hier bekommen Sie einen Überblick über alle Sensoren <a href="http://globelog.de/index.php/de/produkte/umweltmonitoring/imko-wetterstation">...mehr</a></td>
  </tr>
</table>


<?php }else{
} ?>

</body>
</html>

dosn't seem to be wrong for me. And of course, the 100% same code works for me at globelog.de, the devserver even show a blank page if I just use:
<?php
    echo "Test";
?>

Soulstormer
Posts: 7
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#5001
Blank Page 2 Years, 3 Months ago  
This has probably got to do with the path to the files.
if the myphpfiles folder is in your root, try this:

{source}<?php
    require_once JPATH_SITE.DS.'myphpfiles'.DS.'config.php';
    require_once JPATH_SITE.DS.'myphpfiles'.DS.'library.php';
    require JPATH_SITE.DS.'myphpfiles'.DS.'IMKO_WetterstationModule.php';
?>{/source}

Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#5002
Blank Page 2 Years, 3 Months ago  
Dosn't work either. I think it's php at all wich won't work, see the echo "Test";
Soulstormer
Posts: 7
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#5004
Blank Page 2 Years, 3 Months ago  
Weird.
Could you give me admin access?
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#5005
Blank Page 2 Years, 3 Months ago  
Sent you an email, this forum got no personal message function?
Soulstormer
Posts: 7
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#5010
Blank Page 2 Years, 3 Months ago  
No, but you can contact me via http://www.nonumber.nl/contact
Anyway, got your login. I'll look into it...
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#5011
Blank Page 2 Years, 3 Months ago  
Hmmm, I have no idea why this is happening. As soon as the plugin is enabled your website returns blank. Not only that article, but the whole site.
So it is breaking as soon as the Sourcerer files are called on.
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#5013
Blank Page 2 Years, 3 Months ago  
Not at all, the Module "IMKO Wetterstation" uses Sourcerer with PHP, if you deactivate the module, wich is displayed on every site, it works with activated Sourcerer. Just in the big IMKO Wetterstation article it won't work because there is PHP within Sourcerer too. I have deactivated the module now.

Link to the article:
http://devserver/de/produkte/umweltmonit...g/imko-wetterstation

Edit: As i see you already have deactivated those things.
Soulstormer
Posts: 7
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#5014
Blank Page 2 Years, 3 Months ago  
Well, you had 2 modules published too.
The first had faulty php which broke the entire site.
I have disabled them both, and now the site is working (with Sourcerer enabled).

As you can see here - if you don't have wrong php syntax - it is working fine.
joomla-imko.ath.cx/de/produkte/umweltmon...g/imko-wetterstation

So there is problem in the include files.

You don't have to create an own db connect script if you want to do stuff with the joomla db. You can use the ready-to-use $database object.
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#5015
Blank Page 2 Years, 3 Months ago  
It isn't the joomla db, it reads information from a database wich recive informations hourly from a weatherstation. This way we display some weather informations from here on our website.

Wich was the other module? Just created one module wich uses PHP?
Soulstormer
Posts: 7
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#5016
Blank Page 2 Years, 3 Months ago  
IMKO direkt and IMKO Wetterstation
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#5017
Blank Page 2 Years, 3 Months ago  
We forgot to install the postgresql plugin for php (ouch). The code isn't corrupt, it just killed everything and we got no error because we catch the errors and then throw them in to the garbage. So we forget to finish our code... Now it works fine again, and this we have noticed because of you.

Long text short meaning, just thank you very much.

At all it's a very nice plugin, great work.
Soulstormer
Posts: 7
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#5019
Blank Page 2 Years, 3 Months ago  
Glad you've managed to get it working
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Moderators: Peter van Westen
hosting joomla
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support