Welcome Guest, Not a member yet? Register   Sign In
Error in Module 'timezonedb' already loaded
#1

Hi everyone,
I use Codeigniter [b][b]3.1 to programmer a website, it's perfect framework for php.[/b][/b]
[b][b]recently i show error in bottom page said : [/b][/b]


Code:
A PHP Error was encountered

Severity: Core Warning

Message: Module 'timezonedb' already loaded

Filename: Unknown

Line Number: 0

Backtrace:

i search for module timezonedb in php.ini and in .htaccess files i don't find any duplication for loading this module.
could someone help me to fix this error.

thanks
Reply
#2

Sounds like timezonedb is being loaded twice in your php.ini.

Are you sure you are looking in and editing the right php.ini? perhaps create a php page with just phpinfo() in it, visit that to view all the details about your php setup - it will show you where php is loading php.ini from, there could be multiple locations, it will be in one of these.
Reply
#3

I couldn't change any of our host's php.ini configuration so I prevent the error from appearing by adding an IF statement to the error views:

application/views/errors/html/error_php.php

Code:
<? if($message !== "Module 'timezonedb' already loaded"): ?>
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

<h4>A PHP Error was encountered</h4>

<p>Severity: <?php echo $severity; ?></p>
<p>Message:  <?php echo $message; ?></p>
<p>Filename: <?php echo $filepath; ?></p>
<p>Line Number: <?php echo $line; ?></p>

<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
    <p>Backtrace:</p>
    <?php foreach (debug_backtrace() as $error): ?>
        <?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
            <p style="margin-left:10px">
            File: <?php echo $error['file'] ?><br />
            Line: <?php echo $error['line'] ?><br />
            Function: <?php echo $error['function'] ?>
            </p>
        <?php endif ?>
    <?php endforeach ?>
<?php endif ?>
</div>
<?php endif ?>
Reply




Theme © iAndrew 2016 - Forum software by © MyBB