• I had been using Types for a while without issues, but started seeing the following error after updating to version 1.6 (with the latest WordPress version installed).

    Error happens when i click “New Post”.

    Fatal error: Declaration of FormFactory::createForm() must be compatible with that of FormAbstract::createForm() in /home4/MY WEBSITE/wp-content/plugins/types/embedded/common/toolset-forms/classes/class.form_factory.php on line 20

    It also happened on yet ANOTHER website i run, so it’s not just one.

    As soon as i deactivate the plugin, my sites work just fine.

    The newest version seems to have introduced something funky….
    Thanks

    https://wordpress.org/plugins/types/

Viewing 15 replies - 1 through 15 (of 31 total)
  • Yep. Same problem here. I can’t edit existing posts or create new ones. Any word on a fix yet?

    Thanks,

    Jeff Stone

    Plugin Contributor brucepearson

    (@brucepearson)

    This is probably related to PHP 5.2. Can you tell me what version of PHP you are running.

    Thread Starter Diablo2

    (@diablo2)

    I noticed that im a bit behind, on 3.5.5 (using PHPMyAdmin through Hostgator). The latest stable version available is 4.2.7.1.

    Let me know if i should look into something other than PHPMyAdmin. And if not, should i go ahead and upgrade assuming that HG allows me to?

    Plugin Contributor brucepearson

    (@brucepearson)

    @brucepearson – I’m running PHP 5.4.29.

    Thanks,

    Jeff

    I’m having this problem with PHP 5.2.9

    Thread Starter Diablo2

    (@diablo2)

    Well, thats what it says on “PHPMyAdmin” at least……but i guess that must be a different thing…..

    Per your link, let’s assume that im on 5.4.x, since im on a Shared Hosting plan and i have never manually installed any version on my own.

    Diablo2, it’s best not to assume which version of php you’ve got with a shared host. I’m on Hostgator myself with shared hosting and my server is running 5.2.17.

    Paste this command in any template of your theme and it will print out the PHP info, right on your own webpage.

    <?php php_info(); ?>

    You can delete it afterwards.

    As mentioned above, I’m having this problem with 5.4.29, so I’m not sure that it’s a php 5.2 issue.

    Thanks,

    Jeff

    Thread Starter Diablo2

    (@diablo2)

    Could we have the link to the previous version in the meantime until a solution is found? I’d like to have this running at all times.

    Thanks!

    Plugin Contributor brucepearson

    (@brucepearson)

    Could you try changing Line 130 of /types/embedded/common/toolset-forms/classes/class.form_factory.php

    From:

    public function createForm( $nameForm = ‘default’ ) {

    To:

    public function createForm( $nameForm ) {

    Thread Starter Diablo2

    (@diablo2)

    Thanks for the quick reply.
    I replaced the above line and got the following when clicking “New Post”:

    Fatal error: Declaration of FormFactory::displayForm() must be compatible with that of FormAbstract::displayForm() in /home4/diablo2/public_html/MYSITE/wp-content/plugins/types/embedded/common/toolset-forms/classes/class.form_factory.php on line 20

    I can confirm Diablo2’s results also

    Plugin Contributor brucepearson

    (@brucepearson)

    Unfortunately, I can’t reproduce this locally.

    Please try changing Line 147 of /types/embedded/common/toolset-forms/classes/class.form_factory.php

    From:
    public function displayForm( $nameForm = ‘default’ ) {

    To:
    public function displayForm( $nameForm ) {

    Thread Starter Diablo2

    (@diablo2)

    Changing it seems to have done the trick (at least for me).
    Will an update be released to include that line of code automatically?

    In any case, thanks so much for working on this so quickly…

Viewing 15 replies - 1 through 15 (of 31 total)
  • The topic ‘Fatal Error After Latest Update’ is closed to new replies.