WordPress.org

Ready to get started?Download WordPress

Forums

Codestyling Localization
[resolved] PHP Warning on version 1.99.15 (13 posts)

  1. daveshine (David Decker)
    Member
    Posted 3 years ago #

    Hi there!
    At first thanx for this AWESOME plugin!

    The newest version has some php warning I wanted just to report here:
    Warning: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 95 in /-my-path-/wp-content/plugins/codestyling-localization/codestyling-localization.php on line 517

    But otherwise it's working fine.

    -dave from germany :)

    http://wordpress.org/extend/plugins/codestyling-localization/

  2. codestyling
    Member
    Plugin Author

    Posted 3 years ago #

    Seems to be related to the filename in analysis. Did the plugin using special chars at some filenames like '$', '^' or brackets ?

  3. daveshine (David Decker)
    Member
    Posted 3 years ago #

    Aha, don't know in detail. I can use the plugin as normal for translating. Is it when files/plugins use a variable for textdomain containing the "$" symbol or such?

    Can I do something to avoid this?

    Thanx, Dave :)

  4. codestyling
    Member
    Plugin Author

    Posted 3 years ago #

    The questionable line deals with filenames of *.mo and *.po file. Could it be, that inside the naming of one of your plugin files are special character contained?
    I can't reproduce the issue until I know a case (filename) which produces this result. Could you pease find out, which *.mo/*.po/*.pot is responsible for this behavior and give me this example as test base?

  5. anmari
    Member
    Posted 2 years ago #

    Hi

    It is the adminimize plugin - drag it out of plugins - all ok
    drag it back in again and error above happens.

  6. daveshine (David Decker)
    Member
    Posted 2 years ago #

    @anmari
    Thank you for that tip, much appreciated!
    When I delete the whole folder of "Adminimize" then the warning goes away, right! :-)
    (Note: Deactivating the plugin doesn't work though, the folder has to be deleted on the server...)

    -dave :)

  7. Frank
    Member
    Posted 2 years ago #

    Thanks for the hints, i have found the problem. Heikos plugin find the string of textdomain via preg_match and i define my string via function, not static. The next version of my plugin change this and than works fine.

  8. daveshine (David Decker)
    Member
    Posted 2 years ago #

    Thank you, Frank! Much appreciated - your plugin is really awesome, thanx for your hard work!

  9. Frank
    Member
    Posted 2 years ago #

    Welcome ;)

  10. Frank
    Member
    Posted 2 years ago #

    Can all people check the current trunk http://downloads.wordpress.org/plugin/adminimize.zip - i have no problems with this and i hope you also. Thanks for feedback.

  11. daveshine (David Decker)
    Member
    Posted 2 years ago #

    Thank you, Frank!
    After second try the trunk version now works without the error message! Just perfect :)

  12. Frank
    Member
    Posted 2 years ago #

    Thanks for the reply; but i will also change other topics and after this i will released the new version.

  13. codestyling
    Member
    Plugin Author

    Posted 2 years ago #

    preg_match() issue solved at Version 1.99.16

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic