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
/portal.php 39 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!

Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 1,007
» Latest member: kavitasinghji
» Forum threads: 1,324
» Forum posts: 7,788

Full Statistics

Online Users
There are currently 360 online users.
» 0 Member(s) | 359 Guest(s)
Bing

Latest Threads
UserSpice Alpha Testing a...
Forum: News Center
Last Post: ivinsons
11-08-2024, 06:13 PM
» Replies: 13
» Views: 42,475
UserSpice 4.4 Development
Forum: News Center
Last Post: Amelie12
09-21-2024, 12:23 PM
» Replies: 4
» Views: 15,199
Welcome to the new UserSp...
Forum: News Center
Last Post: ivinsons
08-25-2024, 07:39 AM
» Replies: 2
» Views: 27,918
How to use hasPerm
Forum: UserSpice 4.4
Last Post: mudmin
07-20-2019, 02:45 PM
» Replies: 1
» Views: 13,755
Session issue? What I sho...
Forum: UserSpice 4.4
Last Post: Parth
07-17-2019, 05:06 PM
» Replies: 4
» Views: 14,502
Email Error
Forum: UserSpice 4.4
Last Post: Brandin
07-17-2019, 04:47 PM
» Replies: 1
» Views: 6,623
{ Missing Text } after up...
Forum: UserSpice 4.4
Last Post: Brandin
07-16-2019, 04:23 PM
» Replies: 22
» Views: 53,638
Best Practice Info
Forum: New to UserSpice?
Last Post: Brandin
07-16-2019, 11:55 AM
» Replies: 1
» Views: 13,490
Force to use 2FA -always-
Forum: UserSpice 4.4
Last Post: Brandin
07-12-2019, 12:43 PM
» Replies: 1
» Views: 6,636
e-mail not verifying
Forum: UserSpice 4.4
Last Post: LBC
07-10-2019, 11:34 AM
» Replies: 31
» Views: 76,232

 
  Another delete user bug
Posted by: Angel - 09-15-2016, 04:44 PM - Forum: UserSpice 4.3 and Below - Replies (4)

Hey developers,

After the admin deletes a user from admin_users.php, there is an error on the page saying:


Notice: Undefined variable: validation in D:\wwwroot\SET_Apps\users\admin_users.php on line 176

Fatal error: Uncaught Error: Call to a member function errors() on null in D:\wwwroot\SET_Apps\users\admin_users.php:176 Stack trace: #0 {main} thrown in D:\wwwroot\SET_Apps\users\admin_users.php on line 176

I looked into admin_users.php and changed line 175 from this:

if (!$form_valid && Input::exists()){

to:

if (!$form_valid && Input::exists() && isset($validation)){

Now the error is gone. Please let me know if this is a bad fix.

Thanks
Angel


  Common Modifications
Posted by: brian - 09-15-2016, 04:31 PM - Forum: Modifications and Hackery - Replies (32)

Hi everyone, if you have any modifications you have done to UserSpice (any version really), let us know by replying below...something to the effect of "I needed to do X so I modified Y and Z to accomplish it". We want to determine whether there are any common mods people are making, and maybe haven't already brought them up here for discussion.

This will help us understand whether there are some features or "plugin" style developments we need to include in US5 or 4.2.


  Something is wrong with the permissions
Posted by: GePraxa - 09-15-2016, 04:29 PM - Forum: UserSpice 4.3 and Below - Replies (8)

I continue with the tests ... I wanted to try the following:
Remove the three user groups that come by default "users", "administrator" and "test" from the menu can not delete the first two, but if from the database ... can someone and delete them without knowing that happen ... permits break, I think it is important to correct this or put an ad in which indicate that if these first two groups are removed everything breaks.

Although the ideal would correct this, we should be able to delete the first two groups if they so want without breaking the code ...

Regards!


  Admin Dashboard Users Online Table showing unexpected error
Posted by: Angel - 09-15-2016, 04:10 PM - Forum: UserSpice 4.3 and Below - No Replies

Hi UserSpice developers,

First I would like to thank you guys for developing such a nice software!

As I'm implementing Userspice in my project, I found that after I delete a user from the admin_users.php, the "Loggedin Users" table in admin dashboard is showing errors like this:

Notice: Undefined offset: 0 in D:\wwwroot\SET_Apps\users\classes\DB.php on line 155

Notice: Trying to get property of non-object in D:\wwwroot\SET_Apps\users\helpers\helpers.php on line 67

I later realized that this happens because when the user is deleted, it is deleted from these three tables according to us_helpers.php:


function deleteUsers($users) {
$db = DB::getInstance();
$i = 0;
foreach($users as $id){
$query1 = $db->query("DELETE FROM users WHERE id = ?",array($id));
$query2 = $db->query("DELETE FROM user_permission_matches WHERE user_id = ?",array($id));
$query3 = $db->query("DELETE FROM profiles WHERE user_id = ?",array($id));
$i++;
}
return $i;
}

But perhaps the users_online table should also be updated in this for loop. so I added one line of code in this function, now it looks like this:

function deleteUsers($users) {
$db = DB::getInstance();
$i = 0;
foreach($users as $id){
$query1 = $db->query("DELETE FROM users WHERE id = ?",array($id));
$query2 = $db->query("DELETE FROM user_permission_matches WHERE user_id = ?",array($id));
$query3 = $db->query("DELETE FROM profiles WHERE user_id = ?",array($id));
//########################################################## Changed by Angel Sun
$query4 = $db->query("DELETE FROM users_online WHERE user_id = ?",array($id));
//########################################################## Changed by Angel Sun
$i++;
}
return $i;
}

Now the admin dashboard error goes away.

I'm using Userspice 4.1.3. If this bug is already fixed in the newest version, please ignore this report.

Thanks

Angel


  variable missing from language file
Posted by: tjones - 09-15-2016, 04:07 PM - Forum: UserSpice 4.3 and Below - Replies (1)

"ACCOUNT_USER_ADDED" is missing from the language file. It is referenced in admin_users when adding a new user manually.


  List of sites using UserSpice?
Posted by: andrewmduncan - 09-14-2016, 09:14 PM - Forum: New to UserSpice? - Replies (3)

I'd like to get an idea of the range of ways to use UserSpice. Is there a list of links to sites that use it? Thanks.


  UserSpice 5 Alpha Options
Posted by: brian - 09-14-2016, 05:28 PM - Forum: UserSpice 5 - Roadmapping the Future - Replies (3)

Just to get a feel on some things...is there anyone that would be interested in providing feedback on the UserSpice 5 EARLY Alpha? Before you reply, consider these points:

* The code is changing VERY regularly in a lot of files
* The only "update" recommendation we will have is "delete everything"
* No installer, just be a DB dump most likely and a zip file with the code
* Stuff may break, DB changes from day to day
* We might throw it all out and start again
* We would like feedback, but we can't please everyone

I don't think we are ready for it quite yet, but before we start closing sections of code, it would be nice to get SOME feedback on some of the things that are changing or are being introduced.


  Error creating user from the admin panel
Posted by: GePraxa - 09-14-2016, 07:30 AM - Forum: UserSpice 4.3 and Below - No Replies

When a user is created from admin_users.php nothing is inserted into the "profiles" table leaving the user without Bio.

Some temporary solution?


  Error not find user profile
Posted by: GePraxa - 09-13-2016, 07:15 AM - Forum: UserSpice 4.3 and Below - Replies (6)

How to know if the query has any result?

When you are entering:
http://localhost/userspice/user_profile....=blablabla

I would like to show a warning "error" or something other than the page being displayed. How could you do this?

when I put http://localhost/userspice/user_profile.php if an error message appears.


  Failed to send email (admin if sent)
Posted by: GePraxa - 09-12-2016, 10:58 PM - Forum: UserSpice 4.3 and Below - Replies (19)

I have correctly configured the Email from "email_test.php" mail is sent correctly, but can not send it in the following pages:

forgot_password.php
verify_resend.php

Any idea what's going on?