Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Warnings Crypt_Base.php on line 915 #763

Closed
Django-BOfH opened this issue Jun 20, 2014 · 11 comments
Closed

PHP Warnings Crypt_Base.php on line 915 #763

Django-BOfH opened this issue Jun 20, 2014 · 11 comments

Comments

@Django-BOfH
Copy link

I have a lot of error-messages like this one:

[Fri Jun 20 17:54:56 2014] [error] [client aaa.bbb.ccc.ddd] PHP Warning: mdecrypt_generic(): An empty string was passed in /var/www/dokuwiki/inc/phpseclib/Crypt_Base.php on line 9
15
[Fri Jun 20 17:54:56 2014] [error] [client aaa.bbb.ccc.ddd] PHP Warning: mdecrypt_generic(): An empty string was passed in /var/www/dokuwiki/inc/phpseclib/Crypt_Base.php on line 9
15
[Fri Jun 20 17:54:57 2014] [error] [client aaa.bbb.ccc.ddd] PHP Warning: mdecrypt_generic(): An empty string was passed in /var/www/dokuwiki/inc/phpseclib/Crypt_Base.php on line 915
[Fri Jun 20 17:54:58 2014] [error] [client aaa.bbb.ccc.ddd] PHP Warning: mdecrypt_generic(): An empty string was passed in /var/www/dokuwiki/inc/phpseclib/Crypt_Base.php on line 915
[Fri Jun 20 17:54:58 2014] [error] [client aaa.bbb.ccc.ddd] PHP Warning: mdecrypt_generic(): An empty string was passed in /var/www/dokuwiki/inc/phpseclib/Crypt_Base.php on line 915
[Fri Jun 20 17:54:59 2014] [error] [client aaa.bbb.ccc.ddd] PHP Warning: mdecrypt_generic(): An empty string was passed in /var/www/dokuwiki/inc/phpseclib/Crypt_Base.php on line 915
[Fri Jun 20 17:55:00 2014] [error] [client aaa.bbb.ccc.ddd] PHP Warning: mdecrypt_generic(): An empty string was passed in /var/www/dokuwiki/inc/phpseclib/Crypt_Base.php on line 915
[Fri Jun 20 17:55:00 2014] [error] [client aaa.bbb.ccc.ddd] PHP Warning: mdecrypt_generic(): An empty string was passed in /var/www/dokuwiki/inc/phpseclib/Crypt_Base.php on line 915
[Fri Jun 20 17:55:01 2014] [error] [client aaa.bbb.ccc.ddd] PHP Warning: mdecrypt_generic(): An empty string was passed in /var/www/dokuwiki/inc/phpseclib/Crypt_Base.php on line 915
[Fri Jun 20 17:55:01 2014] [error] [client aaa.bbb.ccc.ddd] PHP Warning: mdecrypt_generic(): An empty string was passed in /var/www/dokuwiki/inc/phpseclib/Crypt_Base.php on line 915
[Fri Jun 20 17:55:02 2014] [error] [client aaa.bbb.ccc.ddd] PHP Warning: mdecrypt_generic(): An empty string was passed in /var/www/dokuwiki/inc/phpseclib/Crypt_Base.php on line 915
[Fri Jun 20 17:55:02 2014] [error] [client aaa.bbb.ccc.ddd] PHP Warning: mdecrypt_generic(): An empty string was passed in /var/www/dokuwiki/inc/phpseclib/Crypt_Base.php on line 915

I'm using Release 2014-05-05 "Ponder Stibbons".

The IP adresses all foreign adresses, either there's a bug, a big fail in my settings, or someone is attacking my wiki. :/

@Klap-in Klap-in added the Bug label Jun 26, 2014
@dariovolaric
Copy link

I have the same problem. I get this line only once after updating from an old version.

@dryoo
Copy link
Contributor

dryoo commented Sep 15, 2014

I have same problem. I think it is related with captcha plugin because it occurs when I edit a page.

2014/09/16 00:50:54 [error] 27907#0: *5287596 FastCGI sent in stderr: "PHP message: PHP Warning: mdecrypt_generic(): An empty string was passed in /home/www/wiki/inc/phpseclib/Crypt_Base.php on line 915" while reading response header from upstream, client: 117.123.152.189, server: openwiki.kr, request: "POST /syntax?do=edit&rev=0 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "openwiki.kr", referrer: "http://openwiki.kr/syntax?do=edit&rev=0"

Only when I use chrome browser, but not in IE, FF & Opera

@InfoLibre
Copy link
Contributor

Same problem with captcha : splitbrain/dokuwiki-plugin-captcha#42

@casperklein
Copy link

Same here after upgrading to Dokuwiki Release 2014-05-05a "Ponder Stibbons":

[01-Oct-2014 16:20:44] PHP Warning:  mdecrypt_generic(): An empty string was passed in /blog/inc/phpseclib/Crypt_Base.php on line 915
[01-Oct-2014 16:20:52] PHP Warning:  mdecrypt_generic(): An empty string was passed in /blog/inc/phpseclib/Crypt_Base.php on line 915
[01-Oct-2014 16:23:45] PHP Warning:  mdecrypt_generic(): An empty string was passed in /blog/inc/phpseclib/Crypt_Base.php on line 915
[01-Oct-2014 16:37:14] PHP Warning:  mdecrypt_generic(): An empty string was passed in /blog/inc/phpseclib/Crypt_Base.php on line 915
[01-Oct-2014 16:38:58] PHP Warning:  mdecrypt_generic(): An empty string was passed in /blog/inc/phpseclib/Crypt_Base.php on line 915

I made no changes to dokuwiki pages in that time range (no one else has permissions above "read"). I guess just viewing a page in dokuwiki can trigger that error.

@chang-zhao
Copy link
Contributor

I'm trying to use Dual Login from JFusion integration with Joomla 3.
When I login in Joomla and go to DokuWiki page I get messages:

Warning: mdecrypt_generic(): An empty string was passed in C:\localhost\wiki\inc\phpseclib\Crypt_Base.php on line 915

Warning: Cannot modify header information - headers already sent by (output started at C:\localhost\wiki\inc\phpseclib\Crypt_Base.php:915) in C:\localhost\wiki\inc\auth.php on line 542

Warning: Cannot modify header information - headers already sent by (output started at C:\localhost\wiki\inc\phpseclib\Crypt_Base.php:915) in C:\localhost\wiki\inc\actions.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at C:\localhost\wiki\inc\phpseclib\Crypt_Base.php:915) in C:\localhost\wiki\lib\tpl\dokuwiki\main.php on line 12

Actually JFusion seems to generate cookie "DW..." so I should login to DokuWiki, but it doesn't happen.
I set cookiedir to "/" (instead of "/wiki/"), so JFusion puts cookies ("/") where they should be read. I only wonder what's wrong.
Maybe some encoding method changed or some security measures meddled in?

@Klap-in
Copy link
Collaborator

Klap-in commented May 31, 2015

It appears that there are certain set of users affected by this, but so far I could not find some shared pattern between them. Has someone suggestions?

@chang-zhao
Copy link
Contributor

JFusion developer said: "Probably in a new DokuWiki release they changed authentication cookies again", so some discrepancy with a plugin appeared.

@casperklein
Copy link

For me, the problem went away. But I don't know exactly why. I guess the upgrade to the next release (I was on Ponder Stibbons when first posted here) or upgrading securelogin plugin fixed it for me.
Hope that helps a bit.

@Klap-in
Copy link
Collaborator

Klap-in commented May 1, 2016

Do you have still PHP Warnings appearing from Crypt_Base.php in your DokuWiki?

@panigrc
Copy link

panigrc commented Nov 29, 2018

The issue hasn't been updated last 2 years and I suppose the problem went away.
So I would propose closing this issue.

@phy25
Copy link
Collaborator

phy25 commented Nov 29, 2018

Since the file involved is already deleted, I am closing this.

https://github.com/splitbrain/dokuwiki/blob/cbaf278c50e5baf946b3bd606c369735fe0953be/data/deleted.files#L26

@phy25 phy25 closed this as completed Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants