• Resolved hiteshcms

    (@hiteshcms)


    Hi Event Espresso Team,

    I have used your plugin and I have done many customizations in your plugin files as requested by my client.

    At starting first I have PHP5 and now our hosting provider updated PHP version 7 so I am getting this error
    ” Warning: Creating default object from empty value in /home/myiapra1/public_html/wp-content/plugins/event-espresso-decaf/modules/ticket_selector/EED_Ticket_Selector.module.php on line 123

    Fatal error: Uncaught Error: Call to a member function get() on null in /home/myiapra1/public_html/wp-content/plugins/event-espresso-decaf/core/EE_Front_Controller.core.php:240 Stack trace: #0 /home/myiapra1/public_html/wp-includes/class-wp-hook.php(298): EE_Front_Controller->_initialize_shortcodes(Object(WP)) #1 /home/myiapra1/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /home/myiapra1/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #3 /home/myiapra1/public_html/wp-includes/class-wp.php(386): do_action_ref_array(‘parse_request’, Array) #4 /home/myiapra1/public_html/wp-includes/class-wp.php(733): WP->parse_request(”) #5 /home/myiapra1/public_html/wp-includes/functions.php(955): WP->main(”) #6 /home/myiapra1/public_html/wp-blog-header.php(16): wp() #7 /home/myiapra1/public_html/index.php(17): require(‘/home/myiapra1/…’) #8 {main} thrown in /home/myiapra1/public_html/wp-content/plugins/event-espresso-decaf/core/EE_Front_Controller.core.php on line 240 ”

    So my site is not working. I have referred some questions and do some R&D and found out that your Latest version is work perfect with PHP7 but I have 4.7.12.decaf version.

    As my hosting provider does want us to update PHP version with 7 or he will stop with older PHP version so we need to update PHP version, but we don’t want to lose the customization so we need to continue with event espresso 4.7.12.

    Could you please help me and let me know that what changes I can make in this version to make it compatible with PHP7.?

    Thanks,
    Hitesh.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Josh Feck

    (@builtbynorthby)

    Hi there Hitesh,

    The way forward will be to extract all of the customizations that were made to the core files and put them into their own plugin. In cases where it’s a template customization, you can copy the template to the active WordPress theme’s directory. This way you’ll be able to keep the software up to date without hacking the core plugin.

    Thread Starter hiteshcms

    (@hiteshcms)

    Hi Josh,

    We have done customization in all over the plugin as we have a different requirement from our client, so is there a way forward to work with this old plugin so it will work with PHP7? or if there a way we can make this plugin PHP 7 compatible without updating the plugin.

    Josh Feck

    (@builtbynorthby)

    There is no need to directly edit core files in that way. The action hooks, filter hooks, and customizable templates loader all allow for your client’s required customizations to be done without hacking core. There may be a way to make your hacked up core plugin work with PHP7 but that is not something we can support.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Compatibility with PHP7’ is closed to new replies.