Title: Config area error
Last modified: August 21, 2016

---

# Config area error

 *  Resolved [mahendar](https://wordpress.org/support/users/mahendar/)
 * (@mahendar)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/config-area-error/)
 * 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/](http://wordpress.org/plugins/dropfiles-free/)

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

 *  [hunnicutt77](https://wordpress.org/support/users/hunnicutt77/)
 * (@hunnicutt77)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/config-area-error/#post-4437002)
 * 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….
 *  Plugin Author [WPCode United](https://wordpress.org/support/users/wpcode-united/)
 * (@wpcode-united)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/config-area-error/#post-4437003)
 * 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.
 *  Plugin Author [WPCode United](https://wordpress.org/support/users/wpcode-united/)
 * (@wpcode-united)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/config-area-error/#post-4437005)
 * Hi,
 * We’ve made an update of the plugin.
    It solve this problem for php 5.2.
 * Best regards.

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

The topic ‘Config area error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dropfiles-free_221b55.svg)
 * [Dropfiles free](https://wordpress.org/plugins/dropfiles-free/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dropfiles-free/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dropfiles-free/)
 * [Active Topics](https://wordpress.org/support/plugin/dropfiles-free/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dropfiles-free/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dropfiles-free/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [WPCode United](https://wordpress.org/support/users/wpcode-united/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/config-area-error/#post-4437005)
 * Status: resolved