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.
Sign In
Not a member yet? Click here to register.

Upgraded from 7.03 to 9.03 issues with posting

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.
No issues if I make them administrators
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.
Hi Chan, thanks for your reply. I have checked the user_level table and it has the correct levels as you described. I had hard time finding check_rights() and groupaccess() function of the 9. Could you point me to the correct .php file?
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/php-fusion/PHP-Fu...1009-L1015

groupaccess https://github.com/php-fusion/PHP-Fus...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
CodeDownload  

<?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.
I can post just fine in the poll and shoutbox because I am an admin. I did however, create a test account just member access and that one cannot post in the shoutbox but somehow I was able to cast a vote in the poll. One other strange thing, members are not able to change their passwords if they go with the process of resetting it. A temporary one is generated but they cannot change to some else of their own. Here is the output file:

Quote

Array
(
[sitename] => AROSWorld.org
[siteurl] => https://www.arosworld.org:443/
[site_protocol] => https
[site_host] => www.arosworld.org
[site_port] => 443
[site_path] => /
[sitebanner] => images/banner.png
[sitebanner1] =>
[sitebanner2] => <script async src=\"//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: \"ca-pub-1766499099446617\",
enable_page_level_ads: true
});
</script>
[siteemail] => admin@arosworld.org
[siteusername] => admin
[siteintro] => Hello, Welcome to our site. I have turned on user registration again. Self registration with email verification has also been turned on and tested successfully. if you still have problems, please check your spam/junk folder and then contact me at enzorug(at)live(dot)com if you continue to have problems. Regards, Amigamia
[description] =>
[keywords] =>
[footer] =>
[opening_page] => home.php
[news_thumb_ratio] => 0
[news_image_link] => 0
[news_thumb_w] => 100
[news_thumb_h] => 100
[news_photo_max_w] => 1800
[news_photo_max_h] => 1600
[news_photo_max_b] => 150000
[locale] => English
[theme] => iTheme2
[default_search] => all
[exclude_left] =>
[exclude_upper] =>
[exclude_lower] =>
[exclude_right] =>
[shortdate] => %m/%d/%Y
[longdate] => %B %d %Y %H:%M:%S
[forumdate] => %m/%d/%Y %H:%M
[newsdate] => %B %d %Y
[subheaderdate] => %B %d %Y %H:%M:%S
[timeoffset] => America/Detroit
[serveroffset] => America/Detroit
[online_maxcount] => 4
[attachmax] => 150000
[attachmax_count] => 5
[attachtypes] => .gif,.jpg,.png,.zip,.rar,.tar
[thread_notify] => 1
[online_maxtime] => 1564958028
[enable_registration] => 1
[email_verification] => 1
[admin_activation] => 0
[display_validation] => 1
[enable_deactivation] => 0
[deactivation_period] => 365
[deactivation_response] => 14
[enable_terms] => 1
[license_agreement] => <p>While the administrators and moderators of this site will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to this site express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.</p>
<p>You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. Creating multiple accounts for a single user is not allowed.</p>
<p>You agree that the webmaster, administrator and moderators of this site have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.</p>
<p>This site system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above, they serve only to improve your viewing pleasure. The email address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one). </p>
<p>By clicking Submit below you agree to be bound by these conditions.</p>
[license_lastupdate] => 1577974468
[thumb_compression] => gd2
[thumbs_per_page] => 12
[tinymce_enabled] => 1
[smtp_host] => mail.arosworld.org
[smtp_port] => 587

[bad_words_enabled] => 1
[bad_words] =>
[bad_word_replace] => ****
[guestposts] => 0
[comments_enabled] => 1
[ratings_enabled] => 1
[hide_userprofiles] => 1
[userthemes] => 0
[newsperpage] => 11
[flood_interval] => 60
[counter] => 3407472
[version] => 9.03.20
[maintenance] => 0
[maintenance_message] => Maintenance mode until further notice.
[downloads_per_page] => 15
[links_per_page] => 15
[comments_per_page] => 10
[comments_sorting] => ASC
[avatar_width] => 100
[avatar_height] => 100
[avatar_filesize] => 60000
[avatar_ratio] => 0
[cronjob_day] => 1578656976
[cronjob_hour] => 1578714331
[flood_autoban] => 1
[visitorcounter_enabled] => 1
[rendertime_enabled] => 2
[popular_threads_timeframe] => 604800
[maintenance_level] => -102
[news_photo_w] => 400
[news_photo_h] => 300
[news_image_frontpage] => 1
[news_image_readmore] => 0
[deactivation_action] => 0
[captcha] => grecaptcha
[password_algorithm] => sha256
[default_timezone] => America/Detroit
[userNameChange] => 1
[recaptcha_public] => removed
[recaptcha_private] => removed
[recaptcha_theme] => light
[comments_avatar] => 0
[multiple_logins] => 1
[smtp_auth] => 1
[enabled_languages] => English
[site_seo] => 0
[normalize_seo] => 0
[debug_seo] => 0
[login_method] => 2
[mime_check] => 1
[exclude_aupper] =>
[exclude_blower] =>
[exclude_user1] =>
[exclude_user2] =>
[exclude_user3] =>
[exclude_user4] =>
[admin_theme] => Artemis
[bootstrap] => 1
[entypo] => 0
[fontawesome] => 1
[allow_php_exe] => 0
[privacy_policy] =>
[create_og_tags] => 1
[index_url_bbcode] => 1
[index_url_userweb] => 1
[logoposition_xs] => logo-xs-left
[logoposition_sm] => logo-sm-left
[logoposition_md] => logo-md-left
[logoposition_lg] => logo-lg-left
[user_name_ban] =>
[database_sessions] => 1
[domain_server] =>
[form_tokens] => 5
[gateway] => 1
[devmode] => 0
[link_grouping] => 8
[link_bbcode] => 0
[gateway_method] => 2
)

Quote

Array
(
[csrf_tokens] => Array
(
[0ac2ff645f739ecd175c836562e7724d] => Array
(
[loginform] => Array
(
[0] => 72.218.33.39-1578714555-654658dc57f9a461045bd97b8bf7622263972da36f1482853c381958d0de2481
)

[searchform] => Array
(
[0] => 72.218.33.39-1578714555-2ae79237e80aa15bca61839ddbcbc5891f663298ba1d54cfe89f530da6ed5051
[1] => 72.218.33.39-1578714568-dfa160e2866cac1c534968702047d2cf8e7b42965d9eee8e546e1c0076705e7f
[2] => 1-1578714579-5e37279b1407315facf64a60f87e07e5073f80a472223834c08b76421d6bf95f
)

[loginpageform] => Array
(
[0] => 72.218.33.39-1578714568-12600491c7e654bfa6fb369f2b1f5f68e29e6e1fe9a821aeb5f8079b3cd3a573
)

[voteform] => Array
(
[0] => 1-1578714579-39bc864d62ce16c4956fdcb08e4de0f947d342f6ff66b3d1765b02032d17f0d0
)

[sbpanel] => Array
(
[0] => 1-1578714579-6960ceba7b7debaa5c50a9b7b06abf1343a036d8407851dd8c03146137998c44
)

)

)

[honeypots] => Array
(
[0ac2ff645f739ecd175c836562e7724d] => Array
(
[loginform_honeypot] => Array
(
[honeypot] => loginform_honeypot
[input_name] => fusion_tloTLr
[form_name] => loginform
[type] => honeypot
)

[searchform_honeypot] => Array
(
[honeypot] => searchform_honeypot
[input_name] => fusion_Wo8WzI
[form_name] => searchform
[type] => honeypot
)

[loginpageform_honeypot] => Array
(
[honeypot] => loginpageform_honeypot
[input_name] => fusion_1IoI2k
[form_name] => loginpageform
[type] => honeypot
)

[voteform_honeypot] => Array
(
[honeypot] => voteform_honeypot
[input_name] => fusion_iJAOXw
[form_name] => voteform
[type] => honeypot
)

[sbpanel_honeypot] => Array
(
[honeypot] => sbpanel_honeypot
[input_name] => fusion_5x6I2n
[form_name] => sbpanel
[type] => honeypot
)

)

)

[form_fields] => Array
(
[0ac2ff645f739ecd175c836562e7724d] => Array
(
[user_name] => Array
(
[input_name] => user_name
[title] => Enter Email or Username
[id] => user_name
[type] => text
[required] =>
[safemode] =>
[regex] =>
[callback_check] =>
[delimiter] => ,
[min_length] => 1
[max_length] => 200
[censor_words] => 1
)

[user_pass] => Array
(
[input_name] => user_pass
[title] => Password
[id] => user_pass
[type] => password
[required] =>
[safemode] =>
[regex] =>
[callback_check] =>
[delimiter] => ,
[min_length] => 1
[max_length] => 200
[censor_words] => 1
)

[remember_me] => Array
(
[input_name] => remember_me
[title] => Stay signed in
[id] => remember_me
[type] => checkbox
[required] =>
[safemode] =>
[error_text] => Please tick this checkbox
[delimiter] => ,
)

[stext] => Array
(
[input_name] => stext
[title] => Stext
[id] => stext
[type] => text
[required] =>
[safemode] =>
[regex] =>
[callback_check] =>
[delimiter] => ,
[min_length] => 1
[max_length] => 200
[censor_words] => 1
)

[poll_id] => Array
(
[input_name] => poll_id
[title] => Poll id
[type] => textbox
[id] => poll_id
[required] =>
[safemode] => 0
[delimiter] => ,
[error_text] =>
)

[check] => Array
(
[input_name] => check
[title] => Not good at all
[id] => check-3
[type] => radio
[required] =>
[safemode] =>
[error_text] => Please tick this checkbox
[delimiter] => ,
)

[shout_id] => Array
(
[input_name] => shout_id
[title] => Shout id
[type] => textbox
[id] => shout_id
[required] =>
[safemode] => 0
[delimiter] => ,
[error_text] =>
)

[shout_hidden] => Array
(
[input_name] => shout_hidden
[title] => Shout hidden
[type] => textbox
[id] => shout_hidden
[required] =>
[safemode] => 0
[delimiter] => ,
[error_text] =>
)

[shout_message] => Array
(
[input_name] => shout_message
[type] => textarea
[title] => Message
[id] => shout_message
[required] => 1
[safemode] =>
[error_text] => Please fill out this field
[censor_words] => 1
)

[shout_language] => Array
(
[input_name] => shout_language
[title] => Shout language
[type] => textbox
[id] => shout_language
[required] =>
[safemode] => 0
[delimiter] => ,
[error_text] =>
)

)

)

[notices] => Array
(
[once] => Array
(
[login.php] => Array
(
)

)

)

[aid] => 1.1578714603.fe4b1d84ddb4dcaf622fa93c1e8bb4c0b5899b17c80a3f44ee09d05030406ab9
[performance] => Array
(
[0] => 0.11645
)

)

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?
Overwrite your "support.php" file now with this code here. Remove everything and replace with this:

CodeDownload  

<?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.
CodeDownload  

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
 )

)

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

Thank you.
Leave empty site port.

Quote

Leave empty site port.


Even if I am using an SSL cert? The settings say to leave empty if port 80 is used.

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?
here is another example. I am trying to set settings for private messages and it won't save the settings. The green banner shows saying settings have been saved but they are not. This is the error in log:
settings_messages.php
/administration/settings_messages.php?aid=07d016c751e95ffc
Line: 59
1 minute ago

Severity : Run-time notices
Undefined index: pm_inbox_limit

where ever I turn there is something that does not work.
Leave port blank. The port is intended only for specific scenarios when the site is running on a particular port.
Leave site port blank and test it out. Let us know the result.
Thread Information
Author
Replies
16 posts
Views
382 times
Last Post
Last updated on 5 months ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Chan, RobiNN, amigamia