Jump to content

Down for Maintenance


Recommended Posts

Can anyone else confirm this please ?

When I am writing a script or a module like this one for example:

<?php
function testmod()
{
include("path/dbconnect.php");
include("path/includes/functions.php");
$query = "SELECT * from tbldomains WHERE registrar = 'directi'  ";
$result=mysql_query($query);
echo $result;
}
testmod();
?>

 

When I execute it I get this

php test.php
<div style="border: 1px dashed #cc0000;font-family:Tahoma;background-color:#FBEEEB;width:100%;padding:10px;color:#cc0000;"><strong>Down for Maintenance</strong><br>An upgrade is currently in progress... Please come back soon...</div>

 

It only works if the includes are in the top of the script like this one:

<?php
include("path/dbconnect.php");
include("path/includes/functions.php");
function testmod()
{
$query = "SELECT * from tbldomains WHERE registrar = 'directi'  ";
$result=mysql_query($query);
echo $result;
}
testmod();
?>

 

And I get results. When writing a module it's not big deal but in scripts,

or inside another site integration like Joomla I get the Down for Maintenance error

because of this weird include() behaviour.

 

I only noticed this on 4.2.1. Tested in previous version it works just fine

wherever includes() are...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated