Bug on hivepress messages

When sending a message to the user about some listing he listed it will show the message on the account page and everything works well. But, after a user deletes the listing (and there is no listing at all) the red icon of messages count is stilling appears and the message windows disappear and show a blank page.

And another problem after deleting listing. i’m using this code to show in the menu vendor view page link.

add_filter(
	'hivepress/v1/menus/user_account',
	function ( $menu ) {
		if ( is_user_logged_in() ) {
			$vendor_id = HivePress\Models\Vendor::query()->filter(
				[
					'user' => get_current_user_id(),
				]
			)->get_first_id();

			if ( $vendor_id ) {
				$menu['items']['vendor_view'] = [
					'label'  => 'תצוגת פרופיל ציבורי',
					'url'    => hivepress()->router->get_url( 'vendor_view_page', [ 'vendor_id' => $vendor_id ] ),
					'_order' => 50,
				];
			}
		}

		return $menu;
	},
	1000
);

after user delete all his listing it’s still apears and inside the page it’s shows “listing of %s” in the title.

And also for the booking page, after the booking listing was deleted it still shows for the user the icon and nothing in the page.

Thanks for reporting these issues, the 1 and 3 are caching issues and we’ll resolve these by either keeping the messages/orders if the listing is deleted or by a custom function to refresh all the cache for a user/listing. The vendor page title is not a bug, it shows the title in any case, and listings or the Not Found message below. This way the page title for SEO stays the same, e.g. it appears as “Listings by…” in Google search.

1 Like

OK thank you. if I use a cache plugin like wp rocket and set a clear cache every hour will it resolve the issue until you resolve it in the next update?

Yes, if they use object cache for meta then it may work.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.