booleanbites / houzi-support

Support forum repo for issues & bugs reported for Houzi Flutter App.
4 stars 0 forks source link

Houzi Api 1.4.0 Issue #177

Closed marketania closed 3 months ago

marketania commented 3 months ago

I get this error in the error logs on 1.4.0. The Search function of the app stopped working

[23-Jun-2024 16:39:09 UTC] PHP Fatal error: Uncaught Error: Call to undefined function hcrm_get_option() in /home/XXXXX/public_html/wp-content/plugins/houzi-rest-api-1.4.0/functions/touch_base_functions.php:141 Stack trace:

0 /home/XXXXXX/public_html/wp-includes/rest-api/class-wp-rest-server.php(1230): getMetaData()

1 /home/XXXXXX/public_html/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request()

2 /home/XXXXXX/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch()

3 /home/XXXXXX/public_html/wp-includes/rest-api.php(428): WP_REST_Server->serve_request()

4 /home/XXXXXX/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded()

5 /home/XXXXXX/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

6 /home/XXXXXX/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()

7 /home/XXXXXX/public_html/wp-includes/class-wp.php(418): do_action_ref_array()

8 /home/XXXXXX/public_html/wp-includes/class-wp.php(813): WP->parse_request()

9 /home/XXXXXX/public_html/wp-includes/functions.php(1336): WP->main()

10 /home/XXXXXX/public_html/wp-blog-header.php(16): wp()

11 /home/XXXXXX/public_html/index.php(17): require('/home/XXXXXX/p...')

12 {main}

thrown in /home/XXXXXX/public_html/wp-content/plugins/houzi-rest-api-1.4.0/functions/touch_base_functions.php on line 141

AdilSoomro commented 3 months ago

Hi,

Can you confirm if you have Houzez CRM installed and activated?

marketania commented 3 months ago

That's fixed it, thank you. The issue I have now is that blog post shows, but when I click on any I get blank screen

MuhammadSulemanSaleem commented 3 months ago

Hi,

Please email following items to rana.suleman2297@gmail.com.

  1. Website address.
  2. Envato purchase code.
MuhammadSulemanSaleem commented 3 months ago

Hi there,

Please follow these steps:

  1. Make a copy of your project.
  2. Go to the PROJECT_NAME > assets > configurations > configurations.json
  3. Replace the "blog_detail_page_layout": [] with following:
    "blog_detail_page_layout": [
    {
      "widget_type": "blog_images",
      "widget_title": "Blog Images",
      "widget_enable": true,
      "widget_view_type": ""
    },
    {
      "widget_type": "blog_title",
      "widget_title": "Title",
      "widget_enable": true,
      "widget_view_type": ""
    },
    {
      "widget_type": "blog_category",
      "widget_title": "Blog Category",
      "widget_enable": true,
      "widget_view_type": ""
    },
    {
      "widget_type": "blog_author_and_time",
      "widget_title": "Blog Author and Time",
      "widget_enable": true,
      "widget_view_type": ""
    },
    {
      "widget_type": "blog_content",
      "widget_title": "Blog Content",
      "widget_enable": true,
      "widget_view_type": ""
    },
    {
      "widget_type": "blog_comments",
      "widget_title": "Comments",
      "widget_enable": true,
      "widget_view_type": ""
    }
    ]
  4. If you have defined the App Config on the Houzi Api section in the Wordpress dashboard, update the config there as well.
  5. Perform flutter clean.
  6. Run the App.
marketania commented 3 months ago

That worked, thank you