CodeIgniter Forums
Error after upgrading to version 4.1.7 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: Error after upgrading to version 4.1.7 (/thread-81011.html)



Error after upgrading to version 4.1.7 - chronic - 01-13-2022

After upgrading to version 4.1.7 I have the error below, can anyone help me?

Error
Code:
Access to undeclared static property: Kint\Kint::$depth_limit search →

SYSTEMPATH/CodeIgniter.php at line 252

245        }
246
247        /**
248          * Config\Kint
249          */
250        $config = config('Config\Kint');
251
252        Kint::$depth_limit        = $config->maxDepth;
253        Kint::$display_called_from = $config->displayCalledFrom;
254        Kint::$expanded            = $config->expanded;
255
256        if (! empty($config->plugins) && is_array($config->plugins)) {
257            Kint::$plugins = $config->plugins;
258        }


Also I have another question, why the release of new versions of codeigniter is not communicated in the news of the site?


Thanks


RE: Error after upgrading to version 4.1.7 - BilltheCat - 01-13-2022

Are you sure you're on 4.1.7? I thought this was fixed in the 4.1.6 re-release.


RE: Error after upgrading to version 4.1.7 - chronic - 01-13-2022

Yes, I also saw that it was fixed in version 4.1.6 following this thread:

https://forum.codeigniter.com/thread-80926-post-392700.html#pid392700


The file downloaded and from which I copied the system folder is this:

codeigniter4-CodeIgniter4-v4.1.7-0-g99e0797.zip


PHP Code:
/**
     * The current version of CodeIgniter Framework
     */
    
public const CI_VERSION '4.1.7'


And I didn't use composer for codeigniter installation, but manual installation.


RE: Error after upgrading to version 4.1.7 - kenjis - 01-13-2022

Where did you download codeigniter4-CodeIgniter4-v4.1.7-0-g99e0797.zip from?

It seems you are using old Kint.php in system/ThirdParty/Kint/.


RE: Error after upgrading to version 4.1.7 - chronic - 01-13-2022

(01-13-2022, 05:40 PM)kenjis Wrote: Where did you download codeigniter4-CodeIgniter4-v4.1.7-0-g99e0797.zip from?

It seems you are using old Kint.php in system/ThirdParty/Kint/.

From download page:
https://api.github.com/repos/codeigniter4/CodeIgniter4/zipball/v4.1.7


RE: Error after upgrading to version 4.1.7 - kenjis - 01-13-2022

I downloaded codeigniter4-CodeIgniter4-v4.1.7-0-g99e0797.zip and run spark serve,
and no problem.

(01-13-2022, 12:41 PM)chronic Wrote: Also I have another question, why the release of new versions of codeigniter is not communicated in the news of the site?

Because the announcement was made in the 4.1.6 thread.
https://forum.codeigniter.com/thread-80926-post-392848.html#pid392848


RE: Error after upgrading to version 4.1.7 - chronic - 01-14-2022

(01-13-2022, 06:22 PM)kenjis Wrote: I downloaded codeigniter4-CodeIgniter4-v4.1.7-0-g99e0797.zip and run spark serve,
and no problem.

(01-13-2022, 12:41 PM)chronic Wrote: Also I have another question, why the release of new versions of codeigniter is not communicated in the news of the site?

Because the announcement was made in the 4.1.6 thread.
https://forum.codeigniter.com/thread-80926-post-392848.html#pid392848

Sorry if I bothered you, I found where the problem was, I usually use the manual installation of codeigniter, I was convinced for this project too, but I didn't realize that I used the composer for this.

I still have a question, is it normal that after starting the composer update command it returns these two lines as the last entries?

Code:
> CodeIgniter\ComposerScripts::postUpdate
> bash -c "if [ -f admin/setup.sh ]; then bash admin/setup.sh; fi"



RE: Error after upgrading to version 4.1.7 - kenjis - 01-14-2022

I got it!
You installed Kint with Composer, but you updated CI4 manually and did not run `composer update`.
If Kint is installed via Composer, it is used. But it was out of dated version. So the error occurred.

These two lines as the last entries are normal. Always shows up.


RE: Error after upgrading to version 4.1.7 - chronic - 01-15-2022

(01-14-2022, 04:18 PM)kenjis Wrote: I got it!
You installed Kint with Composer, but you updated CI4 manually and did not run `composer update`.
If Kint is installed via Composer, it is used. But it was out of dated version. So the error occurred.

These two lines as the last entries are normal. Always shows up.

Exactly...

Thanks kenjis