• Resolved Thorworx

    (@thorworx-1)


    No recipe content was displaying at all.

    Debug info:

    Warning: include(): Failed opening '/path_to/site/public_html/wp/wp-content/plugins/recipepress-reloaded/templates//recipe.php' for inclusion (include_path='.:/usr/php/path/to/pear') in /path_to/site/public_html/wp/wp-content/plugins/recipepress-reloaded/php/class/rpr_core.php on line 602

    I fixed this by editing rpr_core (hardcoded the path to the template):

    [line 602]include($this->pluginDir . '/templates/rpr_default/recipe.php');
    //'.$this->option( 'rpr_template', 'rpr_default' ).'

    https://www.ads-software.com/plugins/recipepress-reloaded/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Thorworx

    (@thorworx-1)

    This issue was caused by a default template NOT being set upon installation. I recommend that you set a default to avoid this issue.

    It was not obvious in RPR Settings > Appearance that a default had not been set.

    I never would have found out the problem without turning on WP debug.

    Plugin Author Jan Koester

    (@dasmaeh)

    Actually rpr_default should be set as default AND the code in line 602 should replace the option by ‘rpr_default’ in case the option string ist empty.

    As I’m currently reworking the whole settings section I will take specila care of this. Thanks for reporting this issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error in rpr_core.php file’ is closed to new replies.