Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Upgraded from 7.03 to 9.03 issues with posting

Asked Modified Viewed 1,432 times
A
amigamia
A
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
asked
Junior Member

There is something wrong with the Members group since the upgrade. Members are unable to post in the shoutbox, or vote in the polls. They can post in the forums though. I have defused and infused the shoutbox and poll already (which deletes all the content doing that).
No errors in the error log, the page just refreshes back to the initial screen.
Also, the same behavior is if a user tries to reset the password. The email is sent to the user, they confirm the link via email and a new password is sent but once logged in, they can't seem to change the password.
Nothing in the logs.
0 replies

11 posts

A
amigamia
A
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

No issues if I make them administrators
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Hi, please check DB_USERS

In 9, column “user_level” is -101 for member, -102 for admin, -103 for super admin.

Then make sure you have the proper check_rights() and groupaccess() function of the 9, not 8 and 7. You can compare the codes in github repository Andromeda branch. I know some didn’t override files in full because they have their own custom functions in the core files as a practise.
1 reply
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

You've mentioned about members. How about yourself? Can you post into the shoutbox or voted in the poll without problems?

I thought it was members level that prevented that as it did with many others. But since we're at this point, I'll give you more things to check.

It's in core_functions_include.php

checkrights https://github.com/PHPFusion/PHPFusi...1009-L1015

groupaccess https://github.com/PHPFusion/PHPFusio...1204-L1220

At DB_USERS, user_level is at TINYINT column type and length is 4 with default value of 0

-- If still not work; next to do:

Ensure that your Shoutbox has openform() token working properly.
All forms are protected by CSRF token at default level.
How it works: Every $_POST must be accompanied by a form input of "fusion_token" and "form_id". The Token must be stored into $_SESSION every screen refresh. When $_POST occurs, maincore.php will inspect the presence of "fusion_token" and "form_id" and compare the relevant values. If token exist in $_SESSION, it will be replaced by some other token and current $_POST will be read and if not the whole chunk of $_POST
will be outright rejected and flushed by the system. This is the very basic of PHPFusion 8 and 9 $_POST event mechanism.

-- If still not work; next to do:
Turn off SEF URL during testing

-- If still not work; next to do:
Check your Site Settings
I'm going to give you a small snippet for you to upload to your sever.

Filename: support.php

<?php
require_once __DIR__.'/maincore.php';
require_once THEMES.'templates/header.php';
if (iSUPERADMIN) {
   print_p( fusion_get_settings() );   
   print_p($_SESSION);         
   unset($_SESSION);
}
require_once THEMES.'templates/footer.php';


Put this into your root folder of your server, login as Superadmin and then navigate to {YOUR_SERVER_URL}/support.php

The file will output the array values for you. Copy all the values in the boxes that was printed in your screen and paste it here in your next reply.
1 reply
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Quote

The user_level table and it has the correct levels as you described.


All levels in users table need to be user_level = "-101" with the - , can you confirm that it is there?
Edited by Falk on 11-01-2020 09:10,
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Overwrite your "support.php" file now with this code here. Remove everything and replace with this:


<?php
require_once __DIR__.'/maincore.php';
require_once THEMES.'templates/header.php';
$result = dbquery("SELECT user_id, user_level FROM ".DB_USERS." WHERE user_id > 1 ORDER BY user_id ASC LIMIT 0,50");
$list = [];
while ($data = dbarray($result)) {
   $status = 'Check Failed';
   if ( (int) $data['user_level'] < 0 ) {
      $status = 'Pass Check';
   }
   $list[$data['user_id']] = ['level' => $data['user_level'], 'status' => $status];
}
print_p($list);
require_once THEMES.'templates/footer.php';


Please wrap your debug print out with the [ QUOTE ] tag for easier reading.
0 replies
A
amigamia
A
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member


Array
(
 [3] => Array
 (
 [level] => -102
 [status] => Pass Check
 )

 [4] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [5] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [6] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [7] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [9] => Array
 (
 [level] => -102
 [status] => Pass Check
 )

 [10] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [11] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [13] => Array
 (
 [level] => -102
 [status] => Pass Check
 )

 [14] => Array
 (
 [level] => -102
 [status] => Pass Check
 )

 [15] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [16] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [18] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [19] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [20] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [21] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [22] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [26] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [29] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [37] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [44] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [47] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [50] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [69] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [75] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [80] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [86] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [92] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [101] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [102] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [108] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [109] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [117] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [118] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [122] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [128] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [133] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [134] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [135] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [138] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [141] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [142] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [182] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [241] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [263] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [270] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [280] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [284] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [295] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

 [302] => Array
 (
 [level] => -101
 [status] => Pass Check
 )

)
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Now this is hard to determine without looking at your site. Can you contact me in our Discord? @deviance

Thank you.
0 replies
R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

Leave empty site port.
0 replies
A
amigamia
A
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

Leave empty site port.


Even if I am using an SSL cert? The settings say to leave empty if port 80 is used.
1 reply
A
amigamia
A
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

Now this is hard to determine without looking at your site. Can you contact me in our Discord? @deviance

Thank you.

I agree, there are a number of errors popping up in the error log and not all related. Too many to post here to be honest. Looks like the upgrade from 7 to 9 was not completely successful or not ready. I have disabled the shoutbox for now as it is redundant to the forum. As for the poll, i created a new regular member account for testing and it seems to work.
At this point, It may be better to run a new setup with a fresh new database and all but I do not want to lose the forums content and the users. Is there a way to run a new clean slate setup of 9.03.20 and import the tables for forums, users, and any related tables?
1 reply
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Leave site port blank and test it out. Let us know the result.
0 replies

Category Forum

Upgrading issues - 9

Labels

None yet

Statistics

  • Views 0 views
  • Posts 11 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
R
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
A
A
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet