vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - vBSSO - vBulletin Single Sign-On (https://vborg.vbsupport.ru/showthread.php?t=270517)

xeagle 08-16-2018 10:45 AM

Quote:

Originally Posted by aminp30 (Post 2595975)
hi

I updated to latest version but I have a problem.
I have to use smtp method to mailing. in registration page after send register button I got this message:

Code:


PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in ..../includes/class_mail.php on line 776

PHP Warning: Cannot modify header information - headers already sent by (output started at ..../includes/class_core.php:6075) in ..../vbsso/vendor/com.extremeidea.vbsso/vbsso-connect-shared/sharedapi.php on line 281

PHP Warning: Cannot modify header information - headers already sent by (output started at ..../includes/class_core.php:6075) in ..../vbsso/vendor/com.extremeidea.vbsso/vbsso-connect-shared/sharedapi.php on line 281

PHP Warning: Cannot modify header information - headers already sent by (output started at ..../includes/class_core.php:6075) in ..../vbsso/vendor/com.extremeidea.vbsso/vbsso-connect-shared/sharedapi.php on line 281

PHP Warning: Cannot modify header information - headers already sent by (output started at ..../includes/class_core.php:6075) in ..../vbsso/vendor/com.extremeidea.vbsso/vbsso-connect-shared/sharedapi.php on line 281


PHP Warning: mail(): You are not allowed to send emails via PHPMail. For more information contact your server administrator in ..../vbsso/includes/functions_logging_log4php.php on line 92

how can I fix this problem?

Could you please inform PHP version that you are using?

aminp30 08-17-2018 01:24 AM

Quote:

Originally Posted by xeagle (Post 2596001)
Could you please inform PHP version that you are using?

version 7.0

TiKu 08-19-2018 06:26 PM

When will Mediawiki 1.29 and newer be supported?

TiKu 10-24-2018 03:31 AM

Okay, fixed this myself, also the mcrypt deprecation warnings of PHP 7.2.
Does anybody have the problem that he gets logged of Mediawiki each day? I already had this before I touched the code of vBSSO and have no idea why this is happening. I don't have this problem with Wordpress.

MrZeropage 10-28-2018 09:08 AM

When importing the vbsso.xml it stops with few dots... tried it several times.

vB4.2.5 and PHP7.1

MrZeropage 10-30-2018 09:02 PM

*solved*

PHP7.1 was the problem, after switching to PHP7.0 all is fine

TiKu 11-03-2018 08:00 PM

Quote:

Originally Posted by TiKu (Post 2596983)
Okay, fixed this myself, also the mcrypt deprecation warnings of PHP 7.2.
Does anybody have the problem that he gets logged of Mediawiki each day? I already had this before I touched the code of vBSSO and have no idea why this is happening. I don't have this problem with Wordpress.

Fixed it. vBSSO-Mediawiki called User::setCookies with the $rememberMe parameter always being set to false, so that the user gets logged out when the session times out.

ndahiya 11-12-2018 03:49 AM

Quote:

Originally Posted by TiKu (Post 2596983)
Okay, fixed this myself, also the mcrypt deprecation warnings of PHP 7.2.
Does anybody have the problem that he gets logged of Mediawiki each day? I already had this before I touched the code of vBSSO and have no idea why this is happening. I don't have this problem with Wordpress.

how did you fix it? my host recently moved to easyapache 4. still using php 7.0, but breaks vbsso linkage - some issue with the cookies (not sure what the problem is, but under the old cpanel setup, it was fine - no other changes). appreciate any color as this is a critical piece of our side, and the developer is not active.

ndahiya

TiKu 11-17-2018 04:32 PM

1 Attachment(s)
Quote:

Originally Posted by ndahiya (Post 2597353)
how did you fix it? my host recently moved to easyapache 4. still using php 7.0, but breaks vbsso linkage - some issue with the cookies (not sure what the problem is, but under the old cpanel setup, it was fine - no other changes). appreciate any color as this is a critical piece of our side, and the developer is not active.

ndahiya

Sorry for my late reply. I did not have time earlier.
Well, switching from mcrypt to OpenSSL is quite easy. I edited the file vendor/com.extremeidea.vbsso/vbsso-connect-shared/sharedapi.php (these edits are required in each connected platform):
In sharedapi_encrypt:
Code:

        //return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $data, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB), MCRYPT_RAND))));
        $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('AES-128-CBC'));
        return base64_encode($iv . openssl_encrypt($data, 'AES-128-CBC', $key, OPENSSL_RAW_DATA, $iv));

In sharedapi_decrypt:
Code:

        //return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, base64_decode($data), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB), MCRYPT_RAND)));
        $raw = base64_decode($data);
        $iv_length = openssl_cipher_iv_length('AES-128-CBC');
        $iv = substr($raw, 0, $iv_length);
        return openssl_decrypt(substr($raw, $iv_length), 'AES-128-CBC', $key, OPENSSL_RAW_DATA, $iv);

In vBSSO for vBulletin I've also edited edited the function vbsso_helper_verify_platform_verification in includes/functions_helper.php:
Code:

    return $json && is_array($json)
        && in_array($json[SHAREDAPI_EVENT_FIELD_PRODUCT], array_keys(sharedapi_get_platforms()))
        && isset($json[SHAREDAPI_EVENT_FIELD_DATA][SHAREDAPI_EVENT_FIELD_VERIFY])
        && $json[SHAREDAPI_EVENT_FIELD_DATA][SHAREDAPI_EVENT_FIELD_VERIFY];

But I think this is part of another change I made (display detailed errors in admincp in case of a connection error between connected platforms).

For supporting Mediawiki 1.30 and newer, the plugin needs to be converted. These are too many edits to list them here. I'm not sure how the devs of vBSSO feel about having their commercial product being edited and uploaded by others. On the other hand this product seems abandoned. So @vBSSO: just drop me a friendly message if you want me to remove the file.

MrZeropage 11-18-2018 09:08 AM

You got this working with PHP 7.2 and WordPress (actual version) and vBulletin 4.2.5 ?


All times are GMT. The time now is 08:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02519 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete