• Resolved kaon68

    (@kaon68)


    Hi there

    I’ve tried to update Photonic from version 2.34 (where everything was working well) to 2.42. I got a error message while updating, and then checked pages from my website… everything looks fine…

    …until someone reported that one page was broken : home of our bbpress forum.

    I’ve activated debug to get the message :
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function Photonic_Plugin\Core\Template::set_title(), 1 passed in /home/lesaventwt/www/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /home/lesaventwt/www/wp-content/plugins/photonic/Core/Template.php:23 Stack trace: #0 /home/lesaventwt/www/wp-includes/class-wp-hook.php(287): Photonic_Plugin\Core\Template->set_title(‘Forums’) #1 /home/lesaventwt/www/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘Forums’, Array) #2 /home/lesaventwt/www/wp-content/plugins/bbpress/includes/core/theme-compat.php(561): apply_filters(‘the_title’, ‘Forums’) #3 /home/lesaventwt/www/wp-includes/class-wp-hook.php(287): bbp_template_include_theme_compat(‘/home/lesaventw…’) #4 /home/lesaventwt/www/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘/home/lesaventw…’, Array) #5 /home/lesaventwt/www/wp-content/plugins/bbpress/includes/core/sub-actions.php(477): apply_filters(‘bbp_template_in…’, ‘/home/lesaventw…’) #6 /home/lesaventwt/www/wp-includes/class- in /home/lesaventwt/www/wp-content/plugins/photonic/Core/Template.php on line 23

    I’ve tried to get back to version 2.41, same problem
    I’ve tried to get back to version 2.40, … whole site down >_<

    Also, I’ve noticed that from 2.34 to 2.4X, there is casing logic differences in folders (and maybe files).

    Hope it helps. Until fix news, I can’t update this plugin :-/

    Thanks for your job, and hope you’ll find a quick fix ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Which PHP version are you on?

    Plugin Author Sayontan Sinha

    (@sayontan)

    This is interesting – this looks like a conflict between bbPress and Photonic.

    The documentation of the WP filter hook the_title says that it requires two arguments. In bbPress you have this line from your error log:

    /home/lesaventwt/www/wp-content/plugins/bbpress/includes/core/theme-compat.php(561): apply_filters('the_title', 'Forums')

    … where it is calling the filter without the post id. Technically this could be construed a bug in either plugin.

    I will put in a patch for this in the next version (should be out in a few hours).

    If you want to fix it in the interim, you can try this:

    1. Go to the file photonic/Core/Template.php
    2. Go to line 23. You will see this:
      function set_title($title, $id) {
    3. Change it to:
      function set_title($title, $id = null) {
      	if (empty($id)) return $title;
      

      Note the change in the first line ($id = null) and the new second line.

    Plugin Author Sayontan Sinha

    (@sayontan)

    You can get version 2.43. That addresses this conflict.

    Plugin Author Sayontan Sinha

    (@sayontan)

    I am marking this resolved as I believe 2.43 addresses the conflict. Please feel free to reopen if you are still facing issues.

    Thread Starter kaon68

    (@kaon68)

    Sorry, I was busy to install your fix.

    I confirm, it works ??

    Thanks for the quick reply and fix !

    Thread Starter kaon68

    (@kaon68)

    On the other hand, I had an error by e-mail during the update:
    “An error of type E_COMPILE_ERROR was caused in line 1134 of the file /home/lesaventwt/www/wp-content/plugins/photonic/photonic.php. Error message: require_once (): Failed opening required ‘/ home / lesaventwt / www / wp-content / plugins / photonic // admin / edit-gallery-templates.php ‘(include_path =’.: / usr / local / php7.2 / lib / php ‘) ”

    Nothing peculiar to note … it seems to work. Maybe the file unavailable during a short time meanwhile the update

    Plugin Author Sayontan Sinha

    (@sayontan)

    You seem to have had a problem with the file. The file photonic.php only has around 50 lines.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem while updating from 2.34 to 2.42’ is closed to new replies.