Restored old site but new errors shown |
09-08-2021, 03:44 AM
(This post was last modified: 09-08-2021, 05:53 AM by Inquisitor. Edit Reason: removed spacing ) (09-06-2021, 02:48 PM)includebeer Wrote: I’m pretty sure CI 2.x is only compatible with PHP 5.6 or lower. I would be surprised if it worked with PHP 7 or 8. Upgrading to CI 4 is mostly a rewrite of your website. But if you don’t want to do this a the moment, you can at least upgrade your website to CI 3.x and run it with PHP 7. There’s not a lot of breaking changes between version 2 and 3. I’m not sure if it will work with PHP 8. It’s an old version that don’t gets updated anymore. But it work well with PHP 7. So I've done my upgrade. I read absolutely everything from the upgrade pages especially the 3.0 page: https://codeigniter.com/userguide3/insta...e_300.html Nothing skipped or left out so I'm positive that I've done the upgrade correctly. But I'm still getting the same problem where variables passed into the views cannot be seen. I'm not sure about the simplepie error, I might just remove that code for now, but I'm more interested in the menus.php problem and the error in core/Common.php: Code: A PHP Error was encountered Code: A PHP Error was encountered Code: An uncaught Exception was encountered Here is the beginning of my MY_Controller file: PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); So $options has been created and some properties applied. This code used to work fine. The menus.php has been imported too. It's still called CI_Controller in CI 3.0+ isn't it? The menus file where I'm getting the error. Line 36 = the end of the file: PHP Code: <?php Now my main controller. This is where my processing starts when on the homepage. "var $options" is created here and passed into the view: PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); So I'm not sure why menus.php can't see $options when it's created right before it in MY_Controller? Maybe it's some sort of scope issue. As mentioned it used to work fine before restoring the backup. Now downgraded to PHP 7.4.22. |
Messages In This Thread |
Restored old site but new errors shown - by Inquisitor - 09-06-2021, 06:34 AM
RE: Restored old site but new errors shown - by includebeer - 09-06-2021, 02:48 PM
RE: Restored old site but new errors shown - by Inquisitor - 09-06-2021, 02:55 PM
RE: Restored old site but new errors shown - by Inquisitor - 09-08-2021, 03:44 AM
RE: Restored old site but new errors shown - by InsiteFX - 09-07-2021, 01:28 AM
RE: Restored old site but new errors shown - by kleber - 09-08-2021, 07:42 PM
RE: Restored old site but new errors shown - by Inquisitor - 09-08-2021, 11:59 PM
RE: Restored old site but new errors shown - by InsiteFX - 09-09-2021, 02:06 AM
RE: Restored old site but new errors shown - by Inquisitor - 09-09-2021, 02:22 AM
RE: Restored old site but new errors shown - by includebeer - 09-10-2021, 02:39 PM
|