Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,
    to the CF7 developer: PLEASE develop integration with WP Consent API!

    Core Privacy Roadmap


    Otherwise I’ll be forced to switch to another plugin shortly. 🙁

    Thanks.

    • This reply was modified 3 years, 8 months ago by Carlo.
    Thread Starter Carlo

    (@dodo67)

    Hi Chris,
    I think there is no hope to have values for each blog preserved during step-by-step upgrade.
    After ver.0.4.0 you jumped to 1.0.0 (where there is a bit of mess with files on Subversion). You reordered&cleaned everything with ver.1.0.1
    So, comparing code between ver.0.4.0 and ver.1.0.1, as far as I can see, you never copied the old ‘ms_robotstxt’ option value to the new ‘ms_robotstxt_manager_robotstxt’. The only two lines in 1.0.1 where you use ‘ms_robotstxt’ are line 166 and line 187 in “includes\class_core.php”
    In both lines there is a delete_option( 'ms_robotstxt' );
    I don’t know your code in deep, and I didn’t try a step-by step upgrade, but I think this is the proof that old values get lost.

    Probably in uninstallPreviousVersion function you would had have to create the new set of options for each blog, copying values form the old options before deleting them.

    Carlo

    Thread Starter Carlo

    (@dodo67)

    Thank you for the reply.

    I know option names has chenged in your plugin, my need is just to preserve values setted for each site, first of all the content of each robots.txt
    It’s not important wich option saves that value, the need is to copy the value from the old option to the new one.

    If this not possible by upgradeing directly form 0.4.0 to 1.0.7 (or 1.0.11), what about uprading step-by-step one version at a time?

    Thanks

    Thread Starter Carlo

    (@dodo67)

    Any solution?

    Hi all, I probably solved the problem. I must say my error is a bit different, I have version 1.8.1. This is what I have in error_log:
    PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: nothing to repeat at offset 1 in /home/xxx/public_html/wp-content/plugins/wassup/wassup.php on line 3954

    Anyway, this seems to solve the problem for me:

    1. open wassup.php and go to your error line (for me is 3954)
    2. move up some lines, there is a long list of spammers sites. In my version I see:
      $lines = array(    '123666123\.com',
                  '209\.29\.25\.180',
                  'aerhaethjsry\.com',
                  'aimtrust\.com',
                  'american\-insurance\-companies\.com',
                  'amipregnantquizzes\.com',
                  'all\-lasik\-centers\.com',
                  'allmymovies\.biz',
                  'baby\-kleidung\.runashop\.com',

      and so on.

    3. into this long list, find the lines where there is an asterisk (*) and add a dot before it.
      Example: at line #3928 there is

      '*sales\.net',

      so change it to

      '.*sales\.net',

      IMPORTANT: The dot character must be immediatly before the asterisk

    In my code I found only two lines to change: #3890 and #3928
    That’s all!
    Hope this help.
    If you want more details you should read about Regular Expressions, for example on wikipedia or PHP regular expression (choose ‘Meta-characters’ chapter)

    Dodo

    Thread Starter Carlo

    (@dodo67)

    Found a solution in the meanwhile. 🙂
    Using custom_taxonomy plugin and setting a new taxonomy ‘Nations’ for pages, the terms in this new taxonomy are shared with standard ‘category’ terms if the names are the same.
    So now it’s possible to ‘correlate’ posts with Pages using categories id.

    Carlo

    (@dodo67)

    I’m very interested to this.
    Did someone find a workaround for this?
    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)