WordPress.org

Ready to get started?Download WordPress

Forums

Dropfiles free
[resolved] Config area error (4 posts)

  1. mahendar
    Member
    Posted 7 months ago #

    Hello. I get this error in Config area and on single file selection in sidebar of Dropfiles.
    Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/xxxxx/public_html/wp-content/plugins/dropfiles-free/libraries/form.php on line 145

    http://wordpress.org/plugins/dropfiles-free/

  2. hunnicutt77
    Member
    Posted 6 months ago #

    Hey:

    It means that you have double colons {::} in your code. It's actually on 3 lines of the form.php file. - 145/235/264

    You have to change line 145 from this:

    if(class_exists($class)){
                    return $class::getfield($input[$field[0]]);
                }

    to this:

    if(class_exists($class)){
                    return $class->getfield($input[$field[0]]);
                }

    And change the :: to -> on the other two lines as well

    I personally still wind up having another issue with line 145 (above)...

    Once I do this first fix, I receive an error on the same file, same line:

    Fatal error: Call to a member function getfield() on a non-object in /home/anytestm/public_html/wp-content/plugins/dropfiles-free/libraries/form.php on line 145

    I can't seem to figure that one out. When I remove that line of code, the 'Config' page shows in the dashboard, but nothing is operable...I'd love some help on that....

  3. WPCode United
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    We use a coding way which is only available under php5.3.
    We will make an update of the plugin to fix this.

    For the moment you can try to change the line 145 by

    $c = new $class;
    return $c->getfield($input[$field[0]]);

    Regards.

  4. WPCode United
    Member
    Plugin Author

    Posted 5 months ago #

    Hi,

    We've made an update of the plugin.
    It solve this problem for php 5.2.

    Best regards.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.