CE Phoenix Upgrader Utility

Notice: Undefined variable: dir_handle - CE Phoenix Upgrader Utility

Notice: Undefined variable: dir_handle

by edfaught » Tue Apr 06, 2021 7:05 pm

Notice: Undefined variable: dir_handle in upgrader/inc/functions/functions.php on line 534

Huh. Tried it again and it didn't show up this time.
User avatar
edfaught
Member
Posts: 49
Joined: Mon Oct 26, 2020 3:22 pm
Phoenix Version:
Contact:

Re: Notice: Undefined variable: dir_handle

by zipurman » Tue Apr 06, 2021 8:15 pm

You can change line 534 to

Code: Select all

if ( empty($dir_handle) ) {
Also, did you see any other errors in the log previous to that one?

The upgrader should have also shown the intended directories to delete, what was in that list?

Which upgrade version was being processed at the time of the error?

What version of PHP are you using?
zipurman
-----------
User avatar
zipurman
Builder
Posts: 540
Joined: Tue Oct 13, 2020 5:20 pm
Phoenix Version: v
Contact:

Re: Notice: Undefined variable: dir_handle

by edfaught » Thu Apr 08, 2021 7:21 pm

No prior PHP errors
Don't recall seeing any list of intended deletions (doesn't mean there wasn't one)
1.0.8.0 to 1.0.8.1
PHP 7.3.27

I'm guessing it could have been a cache issue or something temporary as it went away on my next try.
When I finally built the nerve to pull the trigger the actual upgrade went perfectly! I'll try the same on my other test site running different servers soon before I use it on my live site. Good job!

As a sometimes-overly-pessimistic person I run a local test/development site on Xampp as well as another in my production server environment. Keeps me busy..., as well as somewhat confused.
User avatar
edfaught
Member
Posts: 49
Joined: Mon Oct 26, 2020 3:22 pm
Phoenix Version:
Contact:

Re: Notice: Undefined variable: dir_handle

by zipurman » Thu Apr 08, 2021 9:33 pm

Glad to hear it worked in the end. Writing an upgrader is a risky project as so many have customized their stores. I am happy to offer help where I can. Let me know if you run into any more issues, or if everything works perfectly, feel free to share your experience ;)

A VM running a development environment is a good idea. I have several local VMs that I do all my testing and work on ... keeps the important production sites running smoothly.
zipurman
-----------
User avatar
zipurman
Builder
Posts: 540
Joined: Tue Oct 13, 2020 5:20 pm
Phoenix Version: v
Contact:

Re: Notice: Undefined variable: dir_handle

by edfaught » Mon Apr 12, 2021 12:23 am

OK It popped up again in my local site during first try upgrading from 1.07.16
Clicked "Back" and tried again, no notice second try. No changed core files found but there should be some (I think) and it did not check off the step. I will look into it further at some later time.

PHP Notice: Undefined variable: dir_handle in \upgrader\inc\functions\functions.php on line 534
PHP Stack trace:
PHP 1. main}() \upgrader\index.php:0
PHP 2. include() \upgrader\index.php:31
PHP 3. zipDeleteDirectory() \upgrader\inc\steps\08.php:40
User avatar
edfaught
Member
Posts: 49
Joined: Mon Oct 26, 2020 3:22 pm
Phoenix Version:
Contact:

Re: Notice: Undefined variable: dir_handle

by zipurman » Mon Apr 12, 2021 12:52 am

Thanks for the feedback. I just uploaded version 1.0.2 which should solve this error from being thrown.
zipurman
-----------
User avatar
zipurman
Builder
Posts: 540
Joined: Tue Oct 13, 2020 5:20 pm
Phoenix Version: v
Contact: