Title: Fatal error when publish
Last modified: April 13, 2018

---

# Fatal error when publish

 *  Resolved [giraffeiy](https://wordpress.org/support/users/giraffeiy/)
 * (@giraffeiy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-publish-2/)
 * Hello!I have this problem when publishing a new quiz:
 * PHP Fatal error: Call to undefined method WpTesting_Model_AbstractModel::setsource()

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

 *  Plugin Contributor [ustimenko](https://wordpress.org/support/users/ustimenko/)
 * (@ustimenko)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-publish-2/#post-10176516)
 * [@giraffeiy](https://wordpress.org/support/users/giraffeiy/) there is no anything
   in plugin’s code, that calls “setsource” method. There are method calls like “
   setSource”. Pls show us exact error screenshot to prove.
 *  Thread Starter [giraffeiy](https://wordpress.org/support/users/giraffeiy/)
 * (@giraffeiy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-publish-2/#post-10176633)
 * [@ustimenko](https://wordpress.org/support/users/ustimenko/)
    The error screenshot
   like below: [⌊error_psytest⌉](https://ibb.co/nb6mGn)
 *  Plugin Contributor [ustimenko](https://wordpress.org/support/users/ustimenko/)
 * (@ustimenko)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-publish-2/#post-10176653)
 * [@giraffeiy](https://wordpress.org/support/users/giraffeiy/)
 * Here are those line
 * [https://github.com/garex/wp-testing/blob/d6aa7b945dadd5dd88e18cbd6b613d86e3b5c496/src/Model/Compilable.php#L70](https://github.com/garex/wp-testing/blob/d6aa7b945dadd5dd88e18cbd6b613d86e3b5c496/src/Model/Compilable.php#L70)
 * It’s clearly written “setSource”, not “setsource”. Pls check your plugin’s sources.
   May be it was corrupted? Also I assume you have some overcustomized PHP version
   at your hosting. Which PHP version do you have there?
 *  Thread Starter [giraffeiy](https://wordpress.org/support/users/giraffeiy/)
 * (@giraffeiy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-publish-2/#post-10176680)
 * [@ustimenko](https://wordpress.org/support/users/ustimenko/)
 * PHP version is 5.2
 *  Thread Starter [giraffeiy](https://wordpress.org/support/users/giraffeiy/)
 * (@giraffeiy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-publish-2/#post-10176685)
 * And you are right;Plugin’s sources is “setSource”.So I dont know what’s going
   wrong now.
 *  Plugin Contributor [ustimenko](https://wordpress.org/support/users/ustimenko/)
 * (@ustimenko)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-publish-2/#post-10176687)
 * [@giraffeiy](https://wordpress.org/support/users/giraffeiy/)
 * Plugin tested under php 5.2 and there are no issues:
 * [https://travis-ci.org/garex/wp-testing/jobs/362234723](https://travis-ci.org/garex/wp-testing/jobs/362234723)
 * Can you try to switch PHP version at your hosting to check it’s version-related?
 * Or can you try to repeat the issue at another hosting?
 *  Plugin Contributor [ustimenko](https://wordpress.org/support/users/ustimenko/)
 * (@ustimenko)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-publish-2/#post-10176688)
 * [@giraffeiy](https://wordpress.org/support/users/giraffeiy/) may be some custom
   PHP module intercepts somethinng? Which php modules do you have?
 * Pls send me full phpinfo to my email.
 *  Thread Starter [giraffeiy](https://wordpress.org/support/users/giraffeiy/)
 * (@giraffeiy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-publish-2/#post-10176730)
 * However,Thanks for helping.
    I can not check my full phpinfo bucause host supplier
   forbid.I just communicated to my host supplier,and waiting for reply.
 *  Plugin Contributor [ustimenko](https://wordpress.org/support/users/ustimenko/)
 * (@ustimenko)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-publish-2/#post-10484958)
 * Autoclosing.

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

The topic ‘Fatal error when publish’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-testing_fff0ea.svg)
 * [Psychological tests & quizzes](https://wordpress.org/plugins/wp-testing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-testing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-testing/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-testing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-testing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-testing/reviews/)

## Tags

 * [wp-testing-support](https://wordpress.org/support/topic-tag/wp-testing-support/)

 * 9 replies
 * 2 participants
 * Last reply from: [ustimenko](https://wordpress.org/support/users/ustimenko/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-publish-2/#post-10484958)
 * Status: resolved