Welcome Guest, Not a member yet? Register   Sign In
Error after upgrading to version 4.1.7
#1

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
Reply
#2

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

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

https://forum.codeigniter.com/thread-809...#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.
Reply
#4

(This post was last modified: 01-13-2022, 05:41 PM by kenjis.)

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/.
Reply
#5

(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/codeigniter...all/v4.1.7
Reply
#6

(This post was last modified: 01-13-2022, 07:05 PM by kenjis.)

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-809...#pid392848
Reply
#7

(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-809...#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"
Reply
#8

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.
Reply
#9

(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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB