Hello everyone!
The following messages appear in the report:

Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; GeSHi has a deprecated constructor in require_once() (line 837 of /home/.../public_html/sites/all/modules/libraries/libraries.module).

Drupal version - 7.54

Used modules:
Libraries 7.x-2.3, GeSHi Filter 7.x-1.2

Filter:
GeSHi filter - 1.0.8.11

System:
PHP version - 7.0.15

How to solve a problem?

Comments

john_b’s picture

Why do you think this is a problem?

If the deprecated message is causing you discomfort, you can open a ticket for GeSHi Filter. Ideally you would fix the module too and post your fix there.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

vm’s picture

in short the version of PHP in use is the issue. I'd venture you will have others issues with modules in contrib that weren't written with PHP 7.x in mind.

val76’s picture

I also think that the warning appears because the version of PHP.

So... Yesterday I updated the filter (now 1.0.8.12). The message was gone. But while there is not all good.
I think it's too early to describe "what was done".

mmjvb’s picture

See https://github.com/GeSHi/geshi-1.0/pull/60/files and
http://php.net/manual/de/migration70.deprecated.php#migration70.deprecat...

So, there is no need to report it, that is already done as you might have expected!

Also, consider this an issue for GeSHI and not for PHP. Embarrassing to see that there still is no new release of GeSHI !

Fortunately, the change is very small. Needs to be applied manually, because 1.0.8.12 doesn't contain this fix either!

Normally, when a module looks like it is abandoned, you start looking for alternatives: http://drupalmotion.com/article/syntax-highlighting-drupal