• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Moving CI website to another server - only blank page showing

#21
(07-03-2018, 10:37 AM)snelledre Wrote: Do you use the mysql driver in your database.php? see 'dbdriver' => 'mysql',
If yes, don't use that driver use the mysqli driver.
That should be ' dbdriver' => ' mysqli',

André

Thank you!
I modified the dbdriver to 'mysqli' (the 'mysql' driver was dropped from PHP7), but I got many other errors :/ (I'll later paste it, but yet I'm not in my workplace.)
Reply

#22
So I changed the driver from mysql to mysqli in database.php.
I got many error messages, when I load the page:

A PHP Error was encountered
Severity: Notice
Message: Only variable references should be returned by reference
Filename: core/Common.php
Line Number: 257


photo_id!=0) { ?>
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: row
Filename: views/main_view.php
Line Number: 12

A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: views/main_view.php
Line Number: 12

">[Image: %3Cdiv%20style=]
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: row
Filename: views/main_view.php
Line Number: 12


The log:
ERROR - 2018-07-04 07:50:45 --> Severity: Notice  --> Only variable references should be returned by reference /var/www/html/szig/ci/core/Common.php 257
DEBUG - 2018-07-04 07:50:45 --> Config Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Hooks Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Utf8 Class Initialized
DEBUG - 2018-07-04 07:50:45 --> UTF-8 Support Enabled
DEBUG - 2018-07-04 07:50:45 --> URI Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Router Class Initialized
DEBUG - 2018-07-04 07:50:45 --> No URI present. Default controller set.
DEBUG - 2018-07-04 07:50:45 --> Output Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Security Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Input Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Global POST and COOKIE data sanitized
DEBUG - 2018-07-04 07:50:45 --> Language Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Loader Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Config file loaded: /var/www/html/szig/application/config/SZIG_ver.php
DEBUG - 2018-07-04 07:50:45 --> Helper loaded: url_helper
DEBUG - 2018-07-04 07:50:45 --> Helper loaded: szig_helper
DEBUG - 2018-07-04 07:50:46 --> Database Driver Class Initialized
DEBUG - 2018-07-04 07:50:46 --> Session Class Initialized
DEBUG - 2018-07-04 07:50:46 --> Helper loaded: string_helper
DEBUG - 2018-07-04 07:50:46 --> Encrypt Class Initialized
DEBUG - 2018-07-04 07:50:46 --> A session cookie was not found.
DEBUG - 2018-07-04 07:50:46 --> Session routines successfully run
DEBUG - 2018-07-04 07:50:46 --> Model Class Initialized
DEBUG - 2018-07-04 07:50:46 --> Model Class Initialized
DEBUG - 2018-07-04 07:50:46 --> Controller Class Initialized
DEBUG - 2018-07-04 07:50:46 --> Model Class Initialized
DEBUG - 2018-07-04 07:50:46 --> Model Class Initialized
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 12
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 12
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 12
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 12
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 12
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 12
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 14
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 14
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 14
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 14
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 15
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 15
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 16
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 16
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 26
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 26
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 26
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 26
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 26
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 26
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 28
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 28
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 28
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 28
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 29
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 29
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 30
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 30
DEBUG - 2018-07-04 07:50:46 --> File loaded: /var/www/html/szig/application/views/main_view.php
DEBUG - 2018-07-04 07:50:46 --> Final output sent to browser
DEBUG - 2018-07-04 07:50:46 --> Total execution time: 0.2950


May I do something to fix these errors? :/
Reply

#23
(07-03-2018, 10:56 PM)skindci Wrote: So I changed the driver from mysql to mysqli in database.php.
I got many error messages, when I load the page:

A PHP Error was encountered
Severity: Notice
Message: Only variable references should be returned by reference
Filename: core/Common.php
Line Number: 257


photo_id!=0) { ?>
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: row
Filename: views/main_view.php
Line Number: 12

A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: views/main_view.php
Line Number: 12

">[Image: %3Cdiv%20style=]
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: row
Filename: views/main_view.php
Line Number: 12


The log:
ERROR - 2018-07-04 07:50:45 --> Severity: Notice  --> Only variable references should be returned by reference /var/www/html/szig/ci/core/Common.php 257
DEBUG - 2018-07-04 07:50:45 --> Config Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Hooks Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Utf8 Class Initialized
DEBUG - 2018-07-04 07:50:45 --> UTF-8 Support Enabled
DEBUG - 2018-07-04 07:50:45 --> URI Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Router Class Initialized
DEBUG - 2018-07-04 07:50:45 --> No URI present. Default controller set.
DEBUG - 2018-07-04 07:50:45 --> Output Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Security Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Input Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Global POST and COOKIE data sanitized
DEBUG - 2018-07-04 07:50:45 --> Language Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Loader Class Initialized
DEBUG - 2018-07-04 07:50:45 --> Config file loaded: /var/www/html/szig/application/config/SZIG_ver.php
DEBUG - 2018-07-04 07:50:45 --> Helper loaded: url_helper
DEBUG - 2018-07-04 07:50:45 --> Helper loaded: szig_helper
DEBUG - 2018-07-04 07:50:46 --> Database Driver Class Initialized
DEBUG - 2018-07-04 07:50:46 --> Session Class Initialized
DEBUG - 2018-07-04 07:50:46 --> Helper loaded: string_helper
DEBUG - 2018-07-04 07:50:46 --> Encrypt Class Initialized
DEBUG - 2018-07-04 07:50:46 --> A session cookie was not found.
DEBUG - 2018-07-04 07:50:46 --> Session routines successfully run
DEBUG - 2018-07-04 07:50:46 --> Model Class Initialized
DEBUG - 2018-07-04 07:50:46 --> Model Class Initialized
DEBUG - 2018-07-04 07:50:46 --> Controller Class Initialized
DEBUG - 2018-07-04 07:50:46 --> Model Class Initialized
DEBUG - 2018-07-04 07:50:46 --> Model Class Initialized
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 12
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 12
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 12
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 12
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 12
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 12
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 14
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 14
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 14
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 14
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 15
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 15
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 16
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 16
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 26
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 26
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 26
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 26
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 26
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 26
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 28
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 28
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 28
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 28
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 29
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 29
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Undefined variable: row /var/www/html/szig/application/views/main_view.php 30
ERROR - 2018-07-04 07:50:46 --> Severity: Notice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 30
DEBUG - 2018-07-04 07:50:46 --> File loaded: /var/www/html/szig/application/views/main_view.php
DEBUG - 2018-07-04 07:50:46 --> Final output sent to browser
DEBUG - 2018-07-04 07:50:46 --> Total execution time: 0.2950


May I do something to fix these errors? :/

Codeigniter Version?
Reply

#24
Sorry for the stupid question, but where can I found the CI version?
Reply

#25
(07-03-2018, 11:41 PM)skindci Wrote: Sorry for the stupid question, but where can I found the CI version?

Very near the top of /system/core/codeigniter.php (I think maybe you renamed "system" to "ci")
Reply

#26
(07-03-2018, 10:56 PM)skindci Wrote: So I changed the driver from mysql to mysqli in database.php.
I got many error messages, when I load the page:
...
...
...
May I do something to fix these errors? :/


The steps I usually take to find errors:

1. The generated log file can be deleted or renamed if you are paranoid.

2. The log file indicates how far CI progressed before reaching an error which prevents further execution.

3. Always assume the CI/system folder is not the problem and not to be modified.

4. Try to fix the first error shown in your own CI/application folder and ignore subsequent errors.

5. From the log shown:

PHP Code:
ERROR 2018-07-04 07:50:46 --> SeverityNotice  --> Undefined variablerow /var/www/html/szig/application/views/main_view.php 12
ERROR 
2018-07-04 07:50:46 --> SeverityNotice  --> Trying to get property of non-object /var/www/html/szig/application/views/main_view.php 12 


Find and fix the above error and with a bit of luck...
Reply

#27
(07-04-2018, 01:48 PM)dave friend Wrote:
(07-03-2018, 11:41 PM)skindci Wrote: Sorry for the stupid question, but where can I found the CI version?

Very near the top of /system/core/codeigniter.php  (I think maybe you renamed "system" to "ci")

Thank you!
The version is: 2.1.4.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.