Title: missing file sreg.class.php!!!!
Last modified: August 21, 2016

---

# missing file sreg.class.php!!!!

 *  [xpafiolis](https://wordpress.org/support/users/xpafiolis/)
 * (@xpafiolis)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/missing-file-sregclassphp/)
 * doesnt work. plugins missing a file
 * [http://wordpress.org/plugins/simplr-registration-form/](http://wordpress.org/plugins/simplr-registration-form/)

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

 *  [Guizmo](https://wordpress.org/support/users/guizmo01/)
 * (@guizmo01)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/missing-file-sregclassphp/#post-4172583)
 * same for me
 *  [jotaslaush](https://wordpress.org/support/users/jotaslaush/)
 * (@jotaslaush)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/missing-file-sregclassphp/#post-4172634)
 * I found this answer, hope it works for you guys too
 * [http://wordpress.org/support/topic/not-working-need-help?replies=10](http://wordpress.org/support/topic/not-working-need-help?replies=10)
 *  Plugin Author [mpvanwinkle77](https://wordpress.org/support/users/mpvanwinkle77/)
 * (@mpvanwinkle77)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/missing-file-sregclassphp/#post-4172641)
 * So it looks like this might be a php version issue. The __DIR__ constant only
   exists in 5.3 and higher. Can you confirm that you are running a version of php
   older than that?
 *  [Rick Radko](https://wordpress.org/support/users/r3df/)
 * (@r3df)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/missing-file-sregclassphp/#post-4172642)
 * I have the problem on my local server running 5.3.8 and a prod server running
   5.3.24, and version 2.2.4 of the plugin. (2.2.3 works)
 * I don’t think it’s a __DIR__ issue, the file
    `/wp-content/plugins/simplr-registration-
   form/lib/sreg.class.php` does not exist in the install.
 * The message I get is:
    `Warning: require_once(/home/<path removed>/wp-content/
   plugins/simplr-registration-form/lib/sreg.class.php) [function.require-once]:
   failed to open stream: No such file or directory in /home/<path removed>/wp-content/
   plugins/simplr-registration-form/simplr_form_functions.php on line 439`
 * Line 439 is looking for that file:
    ‘require_once __DIR__.’/lib/sreg.class.php’;’
 *  Plugin Author [mpvanwinkle77](https://wordpress.org/support/users/mpvanwinkle77/)
 * (@mpvanwinkle77)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/missing-file-sregclassphp/#post-4172643)
 * I’ve pushed up a new version that should fix these issues. Thanks for reporting.
   And please let me know if you continue receiving the error.

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

The topic ‘missing file sreg.class.php!!!!’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simplr-registration-form_be8c38.svg)
 * [Simplr Registration Form Plus+](https://wordpress.org/plugins/simplr-registration-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simplr-registration-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simplr-registration-form/)
 * [Active Topics](https://wordpress.org/support/plugin/simplr-registration-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simplr-registration-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simplr-registration-form/reviews/)

 * 5 replies
 * 5 participants
 * Last reply from: [mpvanwinkle77](https://wordpress.org/support/users/mpvanwinkle77/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/missing-file-sregclassphp/#post-4172643)
 * Status: not resolved