Forum Replies Created

Viewing 15 replies - 1 through 15 (of 44 total)
  • Thread Starter scamp50

    (@scamp50)

    Removed the plugin and installed again – nothing changed. What permissions could I check?

    S

    Thread Starter scamp50

    (@scamp50)

    I did var_dump( $this ); and go a lot of info!

    Can I return a default template on: $this->addon( ‘custom-templates’ )

    at the end I got this: Fatal error: Call to a member function output() on a non-object in /var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/helpers/models/recipe.php on line 124

    
    object(WPUltimateRecipe)#387 (7) { ["pluginName"]=> string(18) "wp-ultimate-recipe" ["coreDir"]=> string(75) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe" ["corePath"]=> string(18) "wp-ultimate-recipe" ["coreUrl"]=> string(66) "http://xxxx/wp-content/plugins/wp-ultimate-recipe" ["pluginFile"]=> string(98) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/wp-ultimate-recipe.php" ["helper_dirs":protected]=> array(1) { [0]=> string(83) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/helpers" } ["helpers":protected]=> array(30) { ["migration"]=> object(WPURP_Migration)#384 (0) { } ["ajax"]=> object(WPURP_Ajax)#383 (0) { } ["amp"]=> object(WPURP_Amp)#382 (0) { } ["activate"]=> object(WPURP_Activate)#381 (0) { } ["cache"]=> object(WPURP_Cache)#380 (1) { ["cache":"WPURP_Cache":private]=> NULL } ["compatibility"]=> object(WPURP_Compatibility)#379 (0) { } ["css"]=> object(WPURP_Css)#378 (0) { } ["faq"]=> object(WPURP_Faq)#377 (0) { } ["giveaway"]=> object(WPURP_Giveaway)#376 (0) { } ["metadata"]=> object(WPURP_Metadata)#375 (0) { } ["notices"]=> object(WPURP_Notices)#374 (0) { } ["permalinks_flusher"]=> object(WPURP_Permalinks_Flusher)#373 (0) { } ["plugin_action_link"]=> object(WPURP_Plugin_Action_Link)#372 (0) { } ["print"]=> object(WPURP_Print)#371 (1) { ["keyword"]=> string(5) "print" } ["query_posts"]=> object(WPURP_Query_Posts)#370 (0) { } ["recipe_content"]=> object(WPURP_Recipe_Content)#369 (0) { } ["recipe_demo"]=> object(WPURP_Recipe_Demo)#368 (0) { } ["assets"]=> object(WPURP_Assets)#366 (1) { ["assets":"WPURP_Assets":private]=> array(17) { [0]=> array(7) { ["file"]=> string(26) "/css/admin_recipe_form.css" ["admin"]=> bool(true) ["page"]=> string(11) "recipe_form" ["type"]=> string(3) "css" ["priority"]=> int(10) ["url"]=> string(92) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/css/admin_recipe_form.css" ["dir"]=> string(101) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/css/admin_recipe_form.css" } [1]=> array(9) { ["file"]=> string(18) "/js/recipe_form.js" ["admin"]=> bool(true) ["page"]=> string(11) "recipe_form" ["deps"]=> array(3) { [0]=> string(6) "jquery" [1]=> string(18) "jquery-ui-sortable" [2]=> string(7) "suggest" } ["data"]=> array(2) { ["name"]=> string(17) "wpurp_recipe_form" ["coreUrl"]=> string(66) "http://xxxx/wp-content/plugins/wp-ultimate-recipe" } ["type"]=> string(2) "js" ["priority"]=> int(10) ["url"]=> string(84) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/js/recipe_form.js" ["dir"]=> string(93) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/js/recipe_form.js" } [2]=> array(6) { ["file"]=> string(15) "/css/public.css" ["public"]=> bool(true) ["type"]=> string(3) "css" ["priority"]=> int(10) ["url"]=> string(81) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/css/public.css" ["dir"]=> string(90) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/css/public.css" } [3]=> array(6) { ["file"]=> string(14) "/css/admin.css" ["admin"]=> bool(true) ["type"]=> string(3) "css" ["priority"]=> int(10) ["url"]=> string(80) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/css/admin.css" ["dir"]=> string(89) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/css/admin.css" } [4]=> array(7) { ["file"]=> string(12) "/js/admin.js" ["admin"]=> bool(true) ["deps"]=> array(2) { [0]=> string(6) "jquery" [1]=> string(8) "thickbox" } ["type"]=> string(2) "js" ["priority"]=> int(10) ["url"]=> string(78) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/js/admin.js" ["dir"]=> string(87) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/js/admin.js" } [5]=> array(8) { ["name"]=> string(8) "fraction" ["file"]=> string(28) "/vendor/fraction-js/index.js" ["public"]=> bool(true) ["admin"]=> bool(true) ["type"]=> string(2) "js" ["priority"]=> int(10) ["url"]=> string(94) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/vendor/fraction-js/index.js" ["dir"]=> string(103) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/vendor/fraction-js/index.js" } [6]=> array(8) { ["file"]=> string(26) "/js/adjustable_servings.js" ["public"]=> bool(true) ["deps"]=> array(2) { [0]=> string(6) "jquery" [1]=> string(8) "fraction" } ["data"]=> array(3) { ["name"]=> string(14) "wpurp_servings" ["precision"]=> string(1) "2" ["decimal_character"]=> string(1) "." } ["type"]=> string(2) "js" ["priority"]=> int(10) ["url"]=> string(92) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/js/adjustable_servings.js" ["dir"]=> string(101) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/js/adjustable_servings.js" } [7]=> array(7) { ["file"]=> string(27) "/vendor/jquery.tools.min.js" ["public"]=> bool(true) ["deps"]=> array(1) { [0]=> string(6) "jquery" } ["type"]=> string(2) "js" ["priority"]=> int(10) ["url"]=> string(93) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/vendor/jquery.tools.min.js" ["dir"]=> string(102) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/vendor/jquery.tools.min.js" } [8]=> array(8) { ["file"]=> string(19) "/js/print_button.js" ["public"]=> bool(true) ["deps"]=> array(1) { [0]=> string(6) "jquery" } ["data"]=> array(8) { ["name"]=> string(11) "wpurp_print" ["ajaxurl"]=> string(65) "http://xxxx/wp-admin/admin-ajax.php?wpurp_ajax=1" ["nonce"]=> string(10) "10dfe0e6b8" ["custom_print_css"]=> string(0) "" ["coreUrl"]=> string(66) "http://xxxx/wp-content/plugins/wp-ultimate-recipe" ["premiumUrl"]=> bool(false) ["title"]=> string(13) "Healthy Mummy" ["permalinks"]=> string(23) "/%category%/%postname%/" } ["type"]=> string(2) "js" ["priority"]=> int(10) ["url"]=> string(85) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/js/print_button.js" ["dir"]=> string(94) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/js/print_button.js" } [9]=> array(7) { ["file"]=> string(15) "/js/tooltips.js" ["public"]=> bool(true) ["deps"]=> array(1) { [0]=> string(6) "jquery" } ["type"]=> string(2) "js" ["priority"]=> int(10) ["url"]=> string(81) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/js/tooltips.js" ["dir"]=> string(90) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/js/tooltips.js" } [10]=> array(8) { ["file"]=> string(17) "/js/responsive.js" ["public"]=> bool(true) ["deps"]=> array(1) { [0]=> string(6) "jquery" } ["data"]=> array(2) { ["name"]=> string(21) "wpurp_responsive_data" ["breakpoint"]=> string(3) "500" } ["type"]=> string(2) "js" ["priority"]=> int(10) ["url"]=> string(83) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/js/responsive.js" ["dir"]=> string(92) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/js/responsive.js" } [11]=> array(9) { ["name"]=> string(7) "sharrre" ["setting"]=> array(2) { [0]=> string(21) "recipe_sharing_enable" [1]=> string(1) "1" } ["file"]=> string(37) "/vendor/sharrre/jquery.sharrre.min.js" ["public"]=> bool(true) ["deps"]=> array(1) { [0]=> string(6) "jquery" } ["type"]=> string(2) "js" ["priority"]=> int(10) ["url"]=> string(103) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/vendor/sharrre/jquery.sharrre.min.js" ["dir"]=> string(112) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/vendor/sharrre/jquery.sharrre.min.js" } [12]=> array(9) { ["setting"]=> array(2) { [0]=> string(21) "recipe_sharing_enable" [1]=> string(1) "1" } ["file"]=> string(22) "/js/sharing_buttons.js" ["public"]=> bool(true) ["deps"]=> array(2) { [0]=> string(6) "jquery" [1]=> string(7) "sharrre" } ["data"]=> array(4) { ["name"]=> string(21) "wpurp_sharing_buttons" ["facebook_lang"]=> string(5) "en_US" ["twitter_lang"]=> string(2) "en" ["google_lang"]=> string(5) "en-US" } ["type"]=> string(2) "js" ["priority"]=> int(10) ["url"]=> string(88) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/js/sharing_buttons.js" ["dir"]=> string(97) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/js/sharing_buttons.js" } [13]=> array(6) { ["file"]=> string(15) "/js/partners.js" ["public"]=> bool(true) ["type"]=> string(2) "js" ["priority"]=> int(10) ["url"]=> string(81) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/js/partners.js" ["dir"]=> string(90) "/var/www/xxxx/htdocs/wp-content/plugins/wp-ultimate-recipe/js/partners.js" } [14]=> array(8) { ["setting"]=> array(2) { [0]=> string(28) "recipe_template_font_awesome" [1]=> string(1) "1" } ["file"]=> string(111) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/vendor/font-awesome/css/font-awesome.min.css" ["direct"]=> bool(true) ["public"]=> bool(true) ["type"]=> string(3) "css" ["priority"]=> int(10) ["url"]=> string(111) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/vendor/font-awesome/css/font-awesome.min.css" ["dir"]=> string(111) "http://xxxx/wp-content/plugins/wp-ultimate-recipe/vendor/font-awesome/css/font-awesome.min.css" } [15]=> array(9) { ["name"]=> string(7) "chicory" ["setting_inverse"]=> array(2) { [0]=> string(36) "partners_integrations_chicory_enable" [1]=> string(0) "" } ["file"]=> string(39) "//chicoryapp.com/widget_v2/?source=wpur" ["type"]=> string(2) "js" ["direct"]=> bool(true) ["public"]=> bool(true) ["priority"]=> int(10) ["url"]=> string(39) "//chicoryapp.com/widget_v2/?source=wpur" ["dir"]=> string(39) "//chicoryapp.com/widget_v2/?source=wpur" } [16]=> array(9) { ["name"]=> string(6) "yummly" ["setting_inverse"]=> array(2) { [0]=> string(35) "partners_integrations_yummly_enable" [1]=> string(0) "" } ["file"]=> string(45) "https://www.yummly.com/js/widget.js?wordpress" ["type"]=> string(2) "js" ["direct"]=> bool(true) ["public"]=> bool(true) ["priority"]=> int(10) ["url"]=> string(45) "https://www.yummly.com/js/widget.js?wordpress" ["dir"]=> string(45) "https://www.yummly.com/js/widget.js?wordpress" } } } ["recipe_meta_box"]=> object(WPURP_Recipe_Meta_Box)#367 (1) { ["buttons_added":"WPURP_Recipe_Meta_Box":private]=> bool(false) } ["recipe_post_type"]=> object(WPURP_Recipe_Post_Type)#365 (0) { } ["recipe_save"]=> object(WPURP_Recipe_Save)#364 (0) { } ["search"]=> object(WPURP_Search)#363 (0) { } ["support_tab"]=> object(WPURP_Support_Tab)#362 (0) { } ["taxonomies"]=> object(WPURP_Taxonomies)#361 (1) { ["taxonomies":"WPURP_Taxonomies":private]=> array(3) { ["ingredient"]=> array(6) { ["labels"]=> array(14) { ["name"]=> string(11) "Ingredients" ["singular_name"]=> string(10) "Ingredient" ["search_items"]=> string(18) "Search Ingredients" ["popular_items"]=> string(19) "Popular Ingredients" ["all_items"]=> string(15) "All Ingredients" ["edit_item"]=> string(15) "Edit Ingredient" ["update_item"]=> string(17) "Update Ingredient" ["add_new_item"]=> string(18) "Add New Ingredient" ["new_item_name"]=> string(19) "New Ingredient Name" ["separate_items_with_commas"]=> string(32) "Separate ingredients with commas" ["add_or_remove_items"]=> string(25) "Add or remove ingredients" ["choose_from_most_used"]=> string(37) "Choose from the most used ingredients" ["not_found"]=> string(21) "No ingredients found." ["menu_name"]=> string(11) "Ingredients" } ["show_ui"]=> bool(true) ["show_tagcloud"]=> bool(true) ["hierarchical"]=> bool(true) ["rewrite"]=> array(1) { ["slug"]=> string(10) "ingredient" } ["show_in_rest"]=> bool(true) } ["course"]=> array(6) { ["labels"]=> array(14) { ["name"]=> string(7) "Courses" ["singular_name"]=> string(6) "Course" ["search_items"]=> string(14) "Search Courses" ["popular_items"]=> string(15) "Popular Courses" ["all_items"]=> string(11) "All Courses" ["edit_item"]=> string(11) "Edit Course" ["update_item"]=> string(13) "Update Course" ["add_new_item"]=> string(14) "Add New Course" ["new_item_name"]=> string(15) "New Course Name" ["separate_items_with_commas"]=> string(28) "Separate courses with commas" ["add_or_remove_items"]=> string(21) "Add or remove courses" ["choose_from_most_used"]=> string(33) "Choose from the most used courses" ["not_found"]=> string(17) "No courses found." ["menu_name"]=> string(7) "Courses" } ["show_ui"]=> bool(true) ["show_tagcloud"]=> bool(true) ["hierarchical"]=> bool(true) ["rewrite"]=> array(1) { ["slug"]=> string(6) "course" } ["show_in_rest"]=> bool(true) } ["cuisine"]=> array(6) { ["labels"]=> array(14) { ["name"]=> string(8) "Cuisines" ["singular_name"]=> string(7) "Cuisine" ["search_items"]=> string(15) "Search Cuisines" ["popular_items"]=> string(16) "Popular Cuisines" ["all_items"]=> string(12) "All Cuisines" ["edit_item"]=> string(12) "Edit Cuisine" ["update_item"]=> string(14) "Update Cuisine" ["add_new_item"]=> string(15) "Add New Cuisine" ["new_item_name"]=> string(16) "New Cuisine Name" ["separate_items_with_commas"]=> string(29) "Separate cuisines with commas" ["add_or_remove_items"]=> string(22) "Add or remove cuisines" ["choose_from_most_used"]=> string(34) "Choose from the most used cuisines" ["not_found"]=> string(18) "No cuisines found." ["menu_name"]=> string(8) "Cuisines" } ["show_ui"]=> bool(true) ["show_tagcloud"]=> bool(true) ["hierarchical"]=> bool(true) ["rewrite"]=> array(1) { ["slug"]=> string(7) "cuisine" } ["show_in_rest"]=> bool(true) } } } ["thumbnails"]=> object(WPURP_Thumbnails)#360 (0) { } ["vafpress_menu"]=> object(WPURP_Vafpress_Menu)#359 (1) { ["defaults":"WPURP_Vafpress_Menu":private]=> array(1) { ["import_recipes_generic_units"]=> string(65) "clove;cloves;leave;leaves;slice;slices;piece;pieces;pinch;pinches" } } ["vafpress_shortcode"]=> object(WPURP_Vafpress_Shortcode)#358 (0) { } ["shortcodes/index_shortcode"]=> object(WPURP_Index_Shortcode)#357 (0) { } ["shortcodes/recipe_shortcode"]=> object(WPURP_Recipe_Shortcode)#356 (0) { } ["ingredient_units"]=> object(WPURP_Ingredient_Units)#3240 (1) { ["units":protected]=> array(3) { ["weight"]=> array(5) { ["kilogram"]=> array(3) { [0]=> string(2) "kg" [1]=> string(8) "kilogram" [2]=> string(9) "kilograms" } ["gram"]=> array(3) { [0]=> string(1) "g" [1]=> string(4) "gram" [2]=> string(5) "grams" } ["milligram"]=> array(3) { [0]=> string(2) "mg" [1]=> string(9) "milligram" [2]=> string(10) "milligrams" } ["pound"]=> array(4) { [0]=> string(2) "lb" [1]=> string(3) "lbs" [2]=> string(5) "pound" [3]=> string(6) "pounds" } ["ounce"]=> array(3) { [0]=> string(2) "oz" [1]=> string(5) "ounce" [2]=> string(6) "ounces" } } ["volume"]=> array(11) { ["liter"]=> array(3) { [0]=> string(1) "l" [1]=> string(5) "liter" [2]=> string(6) "liters" } ["deciliter"]=> array(3) { [0]=> string(2) "dl" [1]=> string(9) "deciliter" [2]=> string(10) "deciliters" } ["centiliter"]=> array(3) { [0]=> string(2) "cl" [1]=> string(10) "centiliter" [2]=> string(11) "centiliters" } ["milliliter"]=> array(3) { [0]=> string(2) "ml" [1]=> string(10) "milliliter" [2]=> string(11) "milliliters" } ["gallon"]=> array(3) { [0]=> string(3) "gal" [1]=> string(6) "gallon" [2]=> string(7) "gallons" } ["quart"]=> array(3) { [0]=> string(2) "qt" [1]=> string(5) "quart" [2]=> string(6) "quarts" } ["pint"]=> array(3) { [0]=> string(2) "pt" [1]=> string(4) "pint" [2]=> string(5) "pints" } ["cup"]=> array(4) { [0]=> string(3) "cup" [1]=> string(4) "cups" [2]=> string(2) "cu" [3]=> string(1) "c" } ["fluid_ounce"]=> array(5) { [0]=> string(4) "floz" [1]=> string(11) "fluid ounce" [2]=> string(12) "fluid ounces" [3]=> string(8) "fl ounce" [4]=> string(9) "fl ounces" } ["tablespoon"]=> array(8) { [0]=> string(10) "tablespoon" [1]=> string(11) "tablespoons" [2]=> string(4) "tbsp" [3]=> string(5) "tbsps" [4]=> string(4) "tbls" [5]=> string(2) "tb" [6]=> string(3) "tbs" [7]=> string(1) "T" } ["teaspoon"]=> array(6) { [0]=> string(8) "teaspoon" [1]=> string(9) "teaspoons" [2]=> string(3) "tsp" [3]=> string(4) "tsps" [4]=> string(2) "ts" [5]=> string(1) "t" } } ["length"]=> array(6) { ["meter"]=> array(3) { [0]=> string(1) "m" [1]=> string(5) "meter" [2]=> string(6) "meters" } ["centimeter"]=> array(3) { [0]=> string(2) "cm" [1]=> string(10) "centimeter" [2]=> string(11) "centimeters" } ["millimeter"]=> array(3) { [0]=> string(2) "mm" [1]=> string(10) "millimeter" [2]=> string(11) "millimeters" } ["yard"]=> array(3) { [0]=> string(2) "yd" [1]=> string(4) "yard" [2]=> string(5) "yards" } ["foot"]=> array(3) { [0]=> string(2) "ft" [1]=> string(4) "foot" [2]=> string(4) "feet" } ["inch"]=> array(3) { [0]=> string(2) "in" [1]=> string(4) "inch" [2]=> string(6) "inches" } } } } } }
    
    • This reply was modified 9 years, 7 months ago by Marius L. J..
    • This reply was modified 9 years, 7 months ago by Marius L. J.. Reason: Code tags
    Thread Starter scamp50

    (@scamp50)

    it returns bool(false)

    Anything else I can try?

    Thread Starter scamp50

    (@scamp50)

    is there anyway to have the function Call to a member function get_template() on a non-object in /var/www/xxx/htdocs/wp-content/plugins/wp-ultimate-recipe/wp-ultimate-recipe.php on line 268

    call a default template if it cannot find the one I set?

    I am happy to play around editing return $this->addon( ‘custom-templates’ )->get_template( $type, $template ); to see if I can work out what is happening….

    S

    Thread Starter scamp50

    (@scamp50)

    PS I am using 4.6.1

    Thread Starter scamp50

    (@scamp50)

    the only way I can get content to show is to use: echo get_post_field(‘post_content’, $post->ID);

    and that does not show the formatted recipe.

    Thread Starter scamp50

    (@scamp50)

    All the ones I have tried that are in draft.

    Is there any way I can call and echo the content and the template? I can edit single.php file for my theme for the preview in a recipe post.

    Just so you know we do have:

    function wpurp_recipe_content_loop_check( $ignore_query )
    {
    if( is_main_query() ) $ignore_query = false;
    return $ignore_query;
    }
    add_filter( ‘wpurp_recipe_content_loop_check’, ‘wpurp_recipe_content_loop_check’ );

    Thread Starter scamp50

    (@scamp50)

    I already did that – I have tried disabling all plugins (except for WP Ultimate Recipe), and changed to a Twenty Sixteen theme. I just get the title of the recipe and nothing else on the page!

    Thread Starter scamp50

    (@scamp50)

    Yes, as I mentioned I get the error in the preview of the recipe, If I save the recipe and publish then I can view the recipe.

    Thread Starter scamp50

    (@scamp50)

    Also whne I turned on debug = true I got this:

    Fatal error: Call to a member function get_template() on a non-object in /var/www/xxx/htdocs/wp-content/plugins/wp-ultimate-recipe/wp-ultimate-recipe.php on line 268

    Thread Starter scamp50

    (@scamp50)

    and a but more info the_content(); does not return any data.

    Thread Starter scamp50

    (@scamp50)

    Is there a way to disable the templates, or delete them without updating the database?

    Thread Starter scamp50

    (@scamp50)

    And how do I get it to save to a contact?

    Thanks

    Thread Starter scamp50

    (@scamp50)

    Worked this out finally!

    $returnFields = array(‘Id’);
    $dups = Infusionsoft_ContactService::findByEmail($email_address, $returnFields);

    if (empty($dups)) {
    //Add new contact
    }

    Thread Starter scamp50

    (@scamp50)

    Cool – thanks that worked really well.

    Search using the great Relevanssi:
    http://www.babiesandtoddlers.com.au/?t=1&s=swimming

    Search using the default theme search:
    http://www.babiesandtoddlers.com.au/?s=cal_event&m=20130804

    Thanks again

Viewing 15 replies - 1 through 15 (of 44 total)