The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Problems with runme.php - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.4 (https://userspice.com/forums/forumdisplay.php?fid=27) +--- Thread: Problems with runme.php (/showthread.php?tid=1327) |
Problems with runme.php - grumpy-gnome - 02-04-2019 Tried to run the update pack from us 4.3.26 to 4.4.01. The runme script gave me two database errors (see attachment) . Error 1: helpers.php:288 "Table us_announcements already exists" Error 2: helpers:288 "Multiple primary key defined" I logged on OK, but as soon as I tried to access a secured page, I received a PHP error (second attachment) . I'm reverting back to 4.3.26 - thank goodness for a backup The third attachment is the US dashboard page prior to trying the upgrade. This instance of US is running on a WAMP environment. Windows 10. PHP 7.1.9. Mysql 5.7.19. Thanks in anticipation for ideas! RE: Problems with runme.php - mudmin - 02-04-2019 (02-04-2019, 01:24 PM)grumpy-gnome Wrote: Tried to run the update pack from us 4.3.26 to 4.4.01. The runme script gave me two database errors (see attachment) .That global functions is not our file. Can you share what's around that line 487? Maybe that line and the previous 3 and the following 3? I'll look at the helpers error and get back to you on that one. RE: Problems with runme.php - mudmin - 02-04-2019 I don't really understand the helpers line 288 error. That has to do with var dump. The only thing I can think of is that you're vardupming something that can't be dumped in your functions file. RE: Problems with runme.php - grumpy-gnome - 02-04-2019 (02-04-2019, 01:27 PM)mudmin Wrote:(02-04-2019, 01:24 PM)grumpy-gnome Wrote: Tried to run the update pack from us 4.3.26 to 4.4.01. The runme script gave me two database errors (see attachment) .That global functions is not our file. Can you share what's around that line 487? Maybe that line and the previous 3 and the following 3? Sorry, my bad - the global functions is a red herring as, as you pointed out, not a userspice file. There was a syntax error in my code which I've now fixed. Despite this, I'm left with the errors from the runme script. After it runme is complete and I log on as admin, I'm unable to open the userspice admin function from the twisty in the top right of the admin profile page. The URL of the link behind the admin menu seems to be # (i.e. nothing). I'm not vardump-ing anything, the screenshot I included of the two database errors is straight off the runme.php script. Should I try going back to a base install rather than an update? I'm early enough in the development cycle with this particular site that I can do that reasonably painlessly... If you're not sure what the line 288 error is all about - I have no clue ** update ** PHP error log has the following: [04-Feb-2019 11:40:33 Europe/London] PHP Notice: Undefined property: stdClass::$template in C:\wamp64\www\telemetry\users\includes\template\prep.php on line 5 [04-Feb-2019 11:40:33 Europe/London] PHP Stack trace: [04-Feb-2019 11:40:33 Europe/London] PHP 1. {main}() C:\wamp64\www\telemetry\users\login.php:0 [04-Feb-2019 11:40:33 Europe/London] PHP 2. require_once() C:\wamp64\www\telemetry\users\login.php:24 [04-Feb-2019 11:40:33 Europe/London] PHP Fatal error: require_once(): Failed opening required 'C:/wamp64/www/telemetry/usersc/templates//header.php' (include_path='.;C:\php\pear') in C:\wamp64\www\telemetry\users\includes\template\prep.php on line 5 [04-Feb-2019 11:40:33 Europe/London] PHP Stack trace: [04-Feb-2019 11:40:33 Europe/London] PHP 1. {main}() C:\wamp64\www\telemetry\users\login.php:0 [04-Feb-2019 11:40:33 Europe/London] PHP 2. require_once() C:\wamp64\www\telemetry\users\login.php:24 RE: Problems with runme.php - mudmin - 02-04-2019 (02-04-2019, 07:41 PM)grumpy-gnome Wrote:(02-04-2019, 01:27 PM)mudmin Wrote:(02-04-2019, 01:24 PM)grumpy-gnome Wrote: Tried to run the update pack from us 4.3.26 to 4.4.01. The runme script gave me two database errors (see attachment) .That global functions is not our file. Can you share what's around that line 487? Maybe that line and the previous 3 and the following 3? Did you also run users/update.php? I realized that users with 4.3.26 needed to do that. RE: Problems with runme.php - grumpy-gnome - 02-05-2019 (02-04-2019, 08:55 PM)mudmin Wrote: Did you also run users/update.php? Er no...didn't know I had to. Is the order important? update.php first then runme.php? Or t'other way round? I'll give it a go later. RE: Problems with runme.php - grumpy-gnome - 02-05-2019 Success! Ran users/update.php first, then runme.php and now seems to work. I'll need to create a new customised account.php script, but I'll base it on the 4.4 one. |