• Resolved mikrom

    (@mikrom)


    If you enable debug mode You will see error message like this:

    PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; randomize has a deprecated constructor in .../wp-content/plugins/randomize/randomize.php on line 30
    PHP Notice:  The called constructor method for WP_Widget in randomize is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in .../wp-includes/functions.php on line xxx

    Can somebody fix it please?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor Sebastian Schwarz

    (@se-schwarz)

    Hi!
    I will fix this in the next few days. Thanks for reporting!

    Plugin Contributor Sebastian Schwarz

    (@se-schwarz)

    This issue is fixed now.

    Hi Basti @se_schwarz

    Loving the plug in – got a couple of questions.

    If I update it will it remove the data I have put into it?
    And second, is there anyway of exporting the data out to an excel file or word document?

    Awesome plugin either way this is what I’m using it for:
    http://pagetopixels.co.uk/story-generator-writing-prompt/

    Plugin Contributor Sebastian Schwarz

    (@se-schwarz)

    Hi danposmaytee,

    thank you for your interest. I would like to answer to your questions.

    > When you using the direct update, no data will be lost. Only if you uninstall the plugin completely, all entries will be lost.

    > at this time there is no export function available. But I think, I will implement this feature soon. Stay tuned. πŸ™‚

    Basti

    Thanks Basti!

    Would you be able to explain how the shortcode works a little more:
    [randomize category=”EXAMPLE_CATEGORY” random=”1″].

    What does “Random=”1” do?

    Plugin Contributor Sebastian Schwarz

    (@se-schwarz)

    Random = 1 means, that the entries of this category will be randomly shown.
    If Random = 0, the entries will be shown in an ordered sequence, one after the another

    Thread Starter mikrom

    (@mikrom)

    thanks for update!

    Thread Starter mikrom

    (@mikrom)

    bad news:
    PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; randomize has a deprecated constructor in /hosting/www/xxx/www/wp-content/plugins/randomize/randomize.php on line 30
    with updated version :/

    Plugin Contributor Sebastian Schwarz

    (@se-schwarz)

    Interesting. I tested the update by myself, and had no PHP warnings.

    Okay, so…. this is not disadvantage at this time.
    It should be done by disabling WP Debugging in wp-config.php

    I will try to fix that in the next update.

    Stay tuned!

    Thread Starter mikrom

    (@mikrom)

    yes I know, i was only curious, so I enabled debug. I am using latest WP on PHP7 maybe this is it.

    Thread Starter mikrom

    (@mikrom)

    definitelly PHP7 issue

    FILE: /hosting/www/mikrom.cz/www/wp-content/plugins/randomize/randomize.php
    ------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------
     32 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
    ------------------------------------------------------------------------------------------
    Plugin Contributor Sebastian Schwarz

    (@se-schwarz)

    I will follow it up by reading the code by hand and make it compatible to PHP7.

    Thread Starter mikrom

    (@mikrom)

    any news with
    PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; randomize has a deprecated constructor in /hosting/www/xxx/www/wp-content/plugins/randomize/randomize.php on line 30
    ?

    Plugin Contributor Sebastian Schwarz

    (@se-schwarz)

    Very soon, I’m working with a friend on it. πŸ™‚

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Plugin compatibility with WordPress 4.3+’ is closed to new replies.