Page 1 of 1

2.6.2 logs, requests: 2.6.1 bugs report

Posted: Tue Mar 29, 2022 7:45 pm
by axew3

Code: Select all

= 2.6.1 =
*Release Date - 26 Mar, 2022*

* Fix: some secondary issues with last added Stats Widget
* Fix: behavior when integration used together with the phpBB WP extension, to delete users
* Release Logs: https://www.axew3.com/w3/forums/viewtopic.php?t=1720
Report bugs!

Re: 2.6.2 logs, requests: 2.6.1 bugs report

Posted: Thu Mar 31, 2022 9:10 pm
by axew3
Fix php notice (debug mode and on Php 8):

Code: Select all

Deprecated: Required parameter $user_email follows optional parameter $user_login in C:\HTDOCS\wp\wp-content\plugins\wp-w3all-phpbb-integration\class.wp.w3all-phpbb.php on line 1209

Re: 2.6.2 logs, requests: 2.6.1 bugs report

Posted: Sun Apr 03, 2022 1:10 pm
by axew3
Last edit to /views/wp_w3all_phpbb_iframe_short.php and page-forum, reverting as in the past was, lead to the fact, that the global $w3all_url_to_cmsvar being rewritten, and when on subsequent call by widgets the var is so used, the url will present (to get avatars if there are from phpBB gallery for example, or uploaded in phpBB) index.php/ as part of the url that call for image to display, that lead to fail avatars from phpBB into widgets.
the solution is this, so the page-forum and /views/wp_w3all_phpbb_iframe_short.php will be updated again right now:

Code: Select all

....
// bug -> https://wordpress.org/support/topic/problem-using-iframe-feature-with-https/
if( strlen($w3all_url_to_cms) == strlen(get_option( 'w3all_url_to_cms' )) OR strlen($w3all_url_to_cms) == strlen(get_option( 'w3all_url_to_cms' )) + 1 )
{
  // do not re-write value of the global $w3all_url_to_cms or index.php will be may appended into widgets avatars urls, so that will make it fail image loads
 $w3all_url_to_cms_sw = $w3all_url_to_cms;
 $w3all_url_to_cms_sw .= (substr($w3all_url_to_cms, -1) == '/' ? '' : '/index.php');
} else {  $w3all_url_to_cms_sw = $w3all_url_to_cms; }

$w3all_url_to_cms_switch_phpbb_default_url = (empty($ltm['phpbb_default_url'])) ? $w3all_url_to_cms_sw : $ltm['phpbb_default_url'];
....

Re: 2.6.2 logs, requests: 2.6.1 bugs report

Posted: Mon Apr 04, 2022 7:26 am
by axew3
The phpBB STATS and online users widget query has been updated to get the correct online users number, it is now like this:

Code: Select all

    $losTime = time()-(W3PHPBBCONFIG['load_online_time']*60);
    $phpbb_uonline_udata = $w3all_phpbb_connection->get_results("SELECT S.session_time, S.session_ip, U.user_id, U.username, U.user_email
     FROM ".$w3all_config["table_prefix"]."sessions AS S
     JOIN ".$w3all_config["table_prefix"]."users AS U on U.user_id = S.session_user_id
     WHERE S.session_time > $losTime
     GROUP BY S.session_ip
     ORDER BY U.username",ARRAY_A);

Re: 2.6.2 logs, requests: 2.6.1 bugs report

Posted: Mon Apr 04, 2022 7:35 am
by axew3
The addons/page-forum and /views/wp_w3all_phpbb_iframe_short.php fixed to NOT overwrite the global var
$w3all_url_to_cms
last fix that re-add index.php when it is not contained into the passed iframe url, was causing that into subsequent avatars widgets/shortcodes images url, the url containing index.php into url, when retrieving avatars from gallery or upload into phpBB, lead to wrong output (image do not display)

Re: 2.6.2 logs, requests: 2.6.1 bugs report

Posted: Mon Apr 04, 2022 10:09 pm
by axew3

Code: Select all

= 2.6.2 =
*Release Date - 4 Apr, 2022*

* Fix: phpBB STATS and online users widget query to get the correct online guests users number
* Fix: addons/page-forum and /views/wp_w3all_phpbb_iframe_short.php fixed to NOT overwrite the global var $w3all_url_to_cms, leading to wrong widgets/shortcodes avatars links, if avatars option enabled
* Minor fixes
* Release Logs: https://www.axew3.com/w3/forums/viewtopic.php?t=1724
2.6.2 has been released just to fix all the above