The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
v4.4.07: [SOLVED] loads of warning and notices while adding a user level - 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: v4.4.07: [SOLVED] loads of warning and notices while adding a user level (/showthread.php?tid=1429)



v4.4.07: [SOLVED] loads of warning and notices while adding a user level - artoo80 - 04-10-2019

Code:
[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]588[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]589[/b]

[b]Warning[/b]: include(/var/TFH/users/lang/.php): failed to open stream: No such file or directory in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Warning[/b]: include(): Failed opening '/var/TFH/users/lang/.php' for inclusion (include_path='.:/usr/share/php') in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]588[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]589[/b]

[b]Warning[/b]: include(/var/TFH/users/lang/.php): failed to open stream: No such file or directory in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Warning[/b]: include(): Failed opening '/var/TFH/users/lang/.php' for inclusion (include_path='.:/usr/share/php') in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]588[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]589[/b]

[b]Warning[/b]: include(/var/TFH/users/lang/.php): failed to open stream: No such file or directory in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Warning[/b]: include(): Failed opening '/var/TFH/users/lang/.php' for inclusion (include_path='.:/usr/share/php') in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]588[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]589[/b]

[b]Warning[/b]: include(/var/TFH/users/lang/.php): failed to open stream: No such file or directory in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Warning[/b]: include(): Failed opening '/var/TFH/users/lang/.php' for inclusion (include_path='.:/usr/share/php') in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]588[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]589[/b]

[b]Warning[/b]: include(/var/TFH/users/lang/.php): failed to open stream: No such file or directory in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Warning[/b]: include(): Failed opening '/var/TFH/users/lang/.php' for inclusion (include_path='.:/usr/share/php') in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]588[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]589[/b]

[b]Warning[/b]: include(/var/TFH/users/lang/.php): failed to open stream: No such file or directory in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Warning[/b]: include(): Failed opening '/var/TFH/users/lang/.php' for inclusion (include_path='.:/usr/share/php') in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]588[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]589[/b]

[b]Warning[/b]: include(/var/TFH/users/lang/.php): failed to open stream: No such file or directory in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Warning[/b]: include(): Failed opening '/var/TFH/users/lang/.php' for inclusion (include_path='.:/usr/share/php') in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]588[/b]

[b]Notice[/b]: Undefined index: THIS_CODE in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]589[/b]

[b]Warning[/b]: include(/var/TFH/users/lang/.php): failed to open stream: No such file or directory in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

[b]Warning[/b]: include(): Failed opening '/var/TFH/users/lang/.php' for inclusion (include_path='.:/usr/share/php') in [b]/var/TFH/users/helpers/us_helpers.php[/b] on line [b]612[/b]

Fresh install of 4.4.07 (not updated from previous versions). This does not not look normal .. or is it?
Secondary questions, is this the right place to put these issues (even if they may be classified as non-critical) if not feel free to delete the post and redirect me in the right place


RE: v4.4.07: loads of warning and notices while adding a user level - Brandin - 04-10-2019

This would be related to language, you need to make sure you run the updates script, fresh installs do not always have the most recent database.


RE: v4.4.07: loads of warning and notices while adding a user level - artoo80 - 04-10-2019

(04-10-2019, 01:36 PM)Brandin Wrote: This would be related to language, you need to make sure you run the updates script, fresh installs do not always have the most recent database.

Version of reference is 4.4.07 and it was installed from the latest package you provide.

Code:
users/admin.php?view=updates
is saying that I am running the latest version, You are saying I should run an update on that version? which update would I use?


RE: v4.4.07: loads of warning and notices while adding a user level - Brandin - 04-10-2019

Database updates are different from version updates. You need to run the Database Updater. Go to yourdomain.com/users/update.php.


RE: v4.4.07: loads of warning and notices while adding a user level - artoo80 - 04-10-2019

(04-10-2019, 03:42 PM)Brandin Wrote: Database updates are different from version updates. You need to run the Database Updater. Go to yourdomain.com/users/update.php.

I get:


Code:
Finished applying 0 updates (0 errors).

[url=http://tfh.local/users/admin.php]Return to the Admin Dashboard[/url]

a mysql query "select * from updates;" gives:

Code:
+----+--------------+---------------------+----------------+
| id | migration    | applied_on          | update_skipped |
+----+--------------+---------------------+----------------+
| 15 | 1XdrInkjV86F | 2018-02-18 22:33:24 |           NULL |
| 16 | 3GJYaKcqUtw7 | 2018-04-25 17:51:08 |           NULL |
| 17 | 3GJYaKcqUtz8 | 2018-04-25 17:51:08 |           NULL |
| 18 | 69qa8h6E1bzG | 2018-04-25 17:51:08 |           NULL |
| 19 | 2XQjsKYJAfn1 | 2018-04-25 17:51:08 |           NULL |
| 20 | 549DLFeHMNw7 | 2018-04-25 17:51:08 |           NULL |
| 21 | 4Dgt2XVjgz2x | 2018-04-25 17:51:08 |           NULL |
| 22 | VLBp32gTWvEo | 2018-04-25 17:51:08 |           NULL |
| 23 | Q3KlhjdtxE5X | 2018-04-25 17:51:08 |           NULL |
| 24 | ug5D3pVrNvfS | 2018-04-25 17:51:08 |           NULL |
| 25 | 69FbVbv4Jtrz | 2018-04-25 17:51:09 |           NULL |
| 26 | 4A6BdJHyvP4a | 2018-04-25 17:51:09 |           NULL |
| 27 | 37wvsb5BzymK | 2018-04-25 17:51:09 |           NULL |
| 28 | c7tZQf926zKq | 2018-04-25 17:51:09 |           NULL |
| 29 | ockrg4eU33GP | 2018-04-25 17:51:09 |           NULL |
| 30 | XX4zArPs4tor | 2018-04-25 17:51:09 |           NULL |
| 31 | pv7r2EHbVvhD | 2018-04-26 01:00:00 |           NULL |
| 32 | uNT7NpgcBDFD | 2018-04-26 01:00:00 |           NULL |
| 33 | mS5VtQCZjyJs | 2018-12-11 14:19:16 |           NULL |
| 34 | 23rqAv5elJ3G | 2018-12-11 14:19:51 |           NULL |
| 35 | hcA5B3PLhq6E | 2019-04-09 16:55:35 |           NULL |
| 36 | FyMYJ2oeGCTX | 2019-04-09 16:55:35 |           NULL |
| 37 | iit5tHSLatiS | 2019-04-09 16:55:35 |           NULL |
| 38 | VNEno3E4zaNz | 2019-04-09 16:55:35 |           NULL |
| 39 | qPEARSh49fob | 2019-04-09 16:55:35 |           NULL |
| 40 | 2ZB9mg1l0JXe | 2019-04-09 16:55:35 |           NULL |
| 41 | B9t6He7qmFXa | 2019-04-09 16:55:35 |           NULL |
| 42 | 86FkFVV4TGRg | 2019-04-09 16:55:35 |           NULL |
| 43 | y4A1Y0u9n2Rt | 2019-04-09 16:55:35 |           NULL |
| 44 | Tm5xY22MM8eC | 2019-04-09 16:55:35 |           NULL |
+----+--------------+---------------------+----------------+



RE: v4.4.07: loads of warning and notices while adding a user level - Brandin - 04-10-2019

Hi there,

It does look like all of the updates have been applied. The errors you are receiving are related to the new multilanguage system. I'm not 100% positive on how it works as Dan coded that, but its possible there could be a session related issue or something of the such. I will send this over to him to take a look at.

Brandin.


RE: v4.4.07: loads of warning and notices while adding a user level - bigoaf - 04-11-2019

Hi, I have similar issues after upgrade - and can confirm the database has updated..
[11-Apr-2019 06:18:27 UTC] PHP Notice: Undefined index: THIS_CODE in /users/helpers/us_helpers.php on line 588
[11-Apr-2019 06:18:27 UTC] PHP Stack trace:
[11-Apr-2019 06:18:27 UTC] PHP 1. {main}() /html/users/admin.php:0
[11-Apr-2019 06:18:27 UTC] PHP 2. include() /html/users/admin.php:231
[11-Apr-2019 06:18:27 UTC] PHP 3. Validate->check() /html/usersc/includes/admin/_admin_user.php:155
[11-Apr-2019 06:18:27 UTC] PHP 4. lang() /html/users/classes/Validate.php:58
[11-Apr-2019 06:18:27 UTC] PHP Notice: Undefined index: THIS_CODE in /html/users/helpers/us_helpers.php on line 589
[11-Apr-2019 06:18:27 UTC] PHP Stack trace:
[11-Apr-2019 06:18:27 UTC] PHP 1. {main}() /html/users/admin.php:0
[11-Apr-2019 06:18:27 UTC] PHP 2. include() /html/users/admin.php:231
[11-Apr-2019 06:18:27 UTC] PHP 3. Validate->check() /html/usersc/includes/admin/_admin_user.php:155
[11-Apr-2019 06:18:27 UTC] PHP 4. lang() /html/users/classes/Validate.php:58
[11-Apr-2019 06:18:27 UTC] PHP Warning: include(/html/users/lang/.php): failed to open stream: No such file or directory in /html/users/helpers/us_helpers.php on line 612


RE: v4.4.07: loads of warning and notices while adding a user level - Brandin - 04-11-2019

I need more information on your setup please, as I requested above.


RE: v4.4.07: loads of warning and notices while adding a user level - artoo80 - 04-15-2019

Issue is resolved as per 4.4.09

Cheers


RE: v4.4.07: [SOLVED] loads of warning and notices while adding a user level - mudmin - 04-16-2019

Awesome to hear. Thank you for letting us know.