Jump to content
  • 0
Jason Ryan

Missing client_data directory

Question

Hello -

I setup a brand new install of Blesta 4.6 and configured some stuff similarly to my production site running 4.3.2 to test out my custom client theme and I found that in my dev environment, a directory "client_data" was missing from my plugins directory. Does anyone know what plugin this directory is/was associated with? Was it absorbed into another plugin in a recent update or something? My client theme is trying to pull data from it like "number of open invoices" and "number of open tickets". Here is some example code:

$this->Javascript->setInline('
	$(document).ready(function() {
		fetchSupportManagerTickets("open");
	});

	function fetchSupportManagerTickets(status) {
		$(this).blestaRequest("GET", "' . $this->Html->safe($this->base_uri . "plugin/client_data/client_main/count_tickets/open/") . '" + status, null, function(data) {
			if (data)
                $("#count_tickets_user_open").html(data);
            },
            null,
            {dataType:"json"});
	}
');

Just wondering if this has to be rewritten for compatibility with 4.6. As a test, I copied over the "client_data" directory to my dev environment and it was then able to pull the necessary data and display it in the client area, so I am scratching my head. Any insight would be appreciated.

Thanks

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
5 hours ago, Tyson said:

Blesta doesn't come with a ClientData plugin, which explains why it was not in your new installation of Blesta.

It looks like your ClientData plugin is a third-party plugin from @Blesta Addons. You should contact him if there are any compatibility issues.

 

 

Ah, it makes sense because I saw that the guy who originally developed the client theme I am using posted in that same thread. Thank you @Tyson

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...