•  » Extensions
  •  » PWG 2.7.4 Invalid plugin identifier

#1 2015-02-17 12:58:41

xbgmsharp
Member
1970-01-01
215

PWG 2.7.4 Invalid plugin identifier

Hello,

I just upgraded to PWG 2.7.4
Now the configuration plugin page for 'piwigo-openstreetmap' and 'piwigo-videojs' return 'Invalid plugin identifier'.
I am unable to access the configuration page of those plugins.

To make it work, I had to change the regexp filter in 'admin/plugin.php'

Code:

if (!preg_match('/^\w+$/', $plugin_id))

Code:

if (!preg_match('/^\S+$/', $plugin_id))

Using the maintain.class I have a similar issue, but did not find a solution yet.

Offline

 

#2 2015-02-17 13:14:21

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13910

Re: PWG 2.7.4 Invalid plugin identifier

oh no :-/

I made the test on piwigo.org/translate (which contains nearly all plugins) and your plugins were OK, but now I realize that your "-" are transformed into "_". This is why it worked!

I don't understand why you have a problem on maintain.class, is that a new problem in 2.7.4 ? [Subversion] r30951 only modified admin/plugin.php

I really really really don't want to publish a version 2.7.5 (it takes time...). I have to see what I can do.

Offline

 

#3 2015-02-17 13:17:09

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13910

Re: PWG 2.7.4 Invalid plugin identifier

\S is not good. [\w-] would be better

Offline

 

#4 2015-02-17 13:35:02

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13910

Re: PWG 2.7.4 Invalid plugin identifier

I chose the ugly (but fast) solution, I changed the downloadable zip file.

Offline

 

#5 2015-02-17 13:44:20

xbgmsharp
Member
1970-01-01
215

Re: PWG 2.7.4 Invalid plugin identifier

Working now.
Thanks.

Offline

 
  •  » Extensions
  •  » PWG 2.7.4 Invalid plugin identifier

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact