[split] object_to_array ... (CodeIgniter 3.1.3 Released) |
There have also apparently been changes in the loader that aren't mentioned in the upgrade notes. After upgrading I'm getting the following:
Call Stack # Time Memory Function Location 1 0.0014 280072 {main}( ) ...\index.php:0 2 0.0070 354896 require_once( 'C:\wamp64\www\danceminder2\codeigniter3\system\core\CodeIgniter.php' ) ...\index.php:321 3 0.1601 4651136 call_user_func_array:{C:\wamp64\www\danceminder2\codeigniter3\system\core\CodeIgniter.php:532} ( ) ...\CodeIgniter.php:532 4 0.1601 4654024 DanceMinder->index( ) ...\CodeIgniter.php:532 5 0.4210 6956592 MX_Loader->view( ) ...\Danceminder.php:297 A PHP Error was encountered Severity: Error Message: Call to undefined method MY_Loader::_ci_object_to_array() Filename: MX/Loader.php Line Number: 299 I'll post more once I've had a chance to debug and figure out where things are going wrong.
@michaelh99
I guess, within the class MX_Loader you need to find $this->_ci_object_to_array($vars) and to replace it with $this->_ci_prepare_view_vars($vars) (01-09-2017, 04:42 PM)michaelh99 Wrote: There have also apparently been changes in the loader that aren't mentioned in the upgrade notes. After upgrading I'm getting the following: Yes, there are changes in CI_Loader. But they are internal, and we don't do instructions for internal changes. (01-09-2017, 06:11 PM)startbbs Wrote: I am using 4.0 version You're an idiot. (01-09-2017, 09:00 PM)skunkbad Wrote: Upgrade from 3.1.2 to 3.1.3 now has broken database sessions for me. Getting this in the logs: There are 2 bugfixes in 3.1.3 against the Session library, both targeting the database driver: https://github.com/bcit-ci/CodeIgniter/issues/4916 https://github.com/bcit-ci/CodeIgniter/issues/4923 However, I don't see how either of them could cause another issue. (01-10-2017, 02:42 AM)gard_olsen Wrote: I am having issues when loading Object to view. Indeed, this is a valid issue that we haven't noticed. The patch was written for a security issue reported privately and as such was published only with the final release, leaving no time for public testing. It was reviewed by the reporter, but we've only tested it with arrays. https://github.com/bcit-ci/CodeIgniter/pull/4975
Getting following error after upgrading from 3.1.2 to 3.1.3
Code: ( ! ) Fatal error: Call to undefined method MY_Loader::_ci_object_to_array() in C:\xampp\htdocs\pothdekhun\application\third_party\MX\Loader.php on line 300 Code: Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\pothdekhun\application\third_party\MX\Loader.php:300) and Code: Message: Call to undefined method MY_Loader::_ci_object_to_array() Any fixes for this?
The largest Bengali tutorial site on Web Development in this planet
(01-09-2017, 04:42 PM)michaelh99 Wrote: There have also apparently been changes in the loader that aren't mentioned in the upgrade notes. After upgrading I'm getting the following: In MX/Loader.php Replace return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); with return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_prepare_view_vars($vars), '_ci_return' => $return)); (01-10-2017, 12:16 PM)frocco Wrote:(01-09-2017, 04:42 PM)michaelh99 Wrote: There have also apparently been changes in the loader that aren't mentioned in the upgrade notes. After upgrading I'm getting the following: Woahh thanks man! wiredesignz should update their repository right away with this fix
Just a random guy from Internet
Sorry for the lack of a reply, life got busy around here after I posted my question. Thank you frocco, that change worked perfectly.
|
Welcome Guest, Not a member yet? Register Sign In |