The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with runme.php
#1
Thumbs Down 
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 Smile

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!
  Reply
#2
(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) .

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 Smile

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!
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.
  Reply
#3
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.
  Reply
#4
(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) .

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 Smile

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!
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.


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 Blush  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 Smile

** 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
  Reply
#5
(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) .

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 Smile

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!
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.


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 Blush  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 Smile

** 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

Did you also run users/update.php?
I realized that users with 4.3.26 needed to do that.
  Reply
#6
(02-04-2019, 08:55 PM)mudmin Wrote: Did you also run users/update.php?
I realized that users with 4.3.26 needed to do that.

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


Forum Jump:


Users browsing this thread: 6 Guest(s)