Jump to content

barryf

Members
  • Posts

    56
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by barryf

  1. Hi Tyson, Regarding inv_logo, the path, etc are correct. I have multiple servers running the same company - one on Ubuntu 12.04, which displays the logo thumb (and downloads invoices) fine, and the other Ubuntu 14.04 which does not. Using wget, I have downloaded the inv_logo on both platforms. The issue on the 14.04 is that there are two blank lines prepended to the downloaded file. If I open this up in an editor and delete the two lines the image then opens correctly in an image editor. I have also checked the HTTP headers from both servers for the same inv_logo and they are both identical. There is no server or other error reported when serviing this file. It is a 200 OK. The only issue being that these two lines are being prepended which corrupts the file. I have also scp'd the image directly from the web server and confirmed that the image itself is fine. Only when it is served from the /uploads/invoices/inv_logo URL is it corrupted. My suspicion is that both the tcpdf error and this image corruption are due to the same root cause. Tcpdf complains about data already sent, and in this image file there is clearly also data being sent prior to the file itself. I have tried turning off any compression, (mod_deflate and gzip in apache) but it makes no difference. I have to say I am quite stumped at the moment. Apart from the tcpfd and inv_logo everything else works perfectly. My best guess is this is due to some buffering issue but I can't fine where. -Barry
  2. Interesting. Sorry you are having the same issue, but also I am glad it is not just me! Can you tell me the details of your platform? I am running: OS: Ubuntu 14.04 PHP: 5.5.9 Apache: 2.4.7 Blesta: 3.2.2 PHP5.5 Hotfix installed. -Barry
  3. Hi Yes, I am having the same issue on some of my servers, but not others. I temporarily fixed it using the method outlined in http://www.blesta.com/forums/index.php?/topic/2141-tcpdf-error/ As a matter of interest, can you tell me - if you go into /admin/settings/company/billing/customization/ and upload a logo for the invoice - does the thumbnail show up correctly? I only see a broken image as in the screenshot attached. I somehow think these things are related because neither happens on one set of servers but both on the other.
  4. barryf

    Tcpdf Error

    I had the same error and the above did fix it for me as well. I am wondering where the actual issue is though. I have some Blesta instances running on Ubuntu 12.04 with Apache 2.2/php 5.3 which are fine, but the Blesta running on Ubuntu 14.04/Apache 2.4/php5.5 show this error. I am also having an issue where the invoice logos do not display as it appears that dome blank lines are being prepended to the file somewhere. If I download the file then edit it and remove the two lines it is then OK. Again, this is al lfine if I run under php 5.3/apache 2.2 Frustrating.
  5. I use a slightly different technique, so that even on a clean new Blesta install where the end user has not changed the therme. In my apache config I use the following: Alias /app/views/admin/default/images/logo.png /blesta/common/images/logo.png Alias /app/views/client/default/images/logo.png /blesta/common/images/logo.png ...this basically over-rides the default images with my own, but if the user changes the logo in the theme then theirs is used. -Barry
  6. Hi We recently ran across an issue where API calls to create a service were failing. The service was being created fine, but when the blesta service is created it calls template parser to generate the welcome email. This parser throws this error "throw new TemplateSyntaxError('unexpected character in filters : "'. $this->source[$this->pos]. '" at '.$this->getPosition())", resulting in a returned error of: "An unexpected error occured. unexpected character in filters : \"=\" at 35" It seems that there is no validation when saving an email template, allowing a user to save incorrect template which will cause later parsing to fail. -Barry
  7. Hi, We have implemented a Voice service using Blesta, and in our plugin we have created a cron trigger which, when an invoice is due, will pull in the CDRs from our voice platform, and include these charges on the invoice it generates. This works, but there are some issues and we are wondering if there is or could be a better way to handle this type of data. While we are dealing with Voice, it really would apply to any service where usage data or charges need to be retrieved from an external system. The main issue is that we have to ensure that the main "Create Invoice" cron task does not get run before ours, otherwise the invoices will get created to include the Blesta services, but none of the CDR (the most important bit!) get included. This means basically we have to turn off the running of the "Create Invoice" cron task, and create our own. This is what we have done. However, if an end user re-enables "Create Invoice" and it then runs before our own, the invoices are incomplete. It would be useful if it were possible - perhaps in the Package definition, to have an option like "Custom Invoice Creation" which, when selected, would cause any service created from this package to be skipped when Blesta runs "Create Invoice" task, so that it can then be processed by our own task. Thanks -Barry
  8. Thanks - yes it did solve it. -Barry
  9. Hi I have a staff group which, for example, has access to Packages disabled and I log in as a user in this group, the Packages menu is not displayed. However, if I click on the Support Manager menu, the Packages menu (and any other previously hidden menus) appears again. Only when I click back into a core menu item do these disabled menus disappear. It seems that the menu display logic for plugins is not checking whether the staff group has access to the menu and is simply displaying them all. Not a big deal but would be more consistent if the menus did not display if the staff member does not have access. -Barry
  10. Hi It would make for a much cleaner interface if, in Company and System Settings the icons/links to sections are only shown if the logged in user has permission to access them. Changes needed are quite small. By way of example, attached are patches for admin_settings_system.pdt, admin_settings_company.pdt and settings_leftnav.pdt It simply checks the user permissions and only displays the icon if the user is allowed. -Barry EDIT: Original patches removed for now as they would probably not work on other systems due to differing ids. Re-doing them to be universal. EDIT 2: patches attached. admin_settings_company.pdt.patch.txt settings_leftnav.pdt.patch.txt admin_settings_system.pdt.patch.txt
  11. Hi In the multi-company setup, if an admin is given permission to manage Staff and Staff Groups, they are able to manage staff/groups for ALL companies within the Blesta install, and can even add permissions to their own group. It would be really helpful if an admin who only has rights to a single company was able to create new staff and groups for that company only. The permissions this admin can delegate would only include rights that he himself has. Is this something that is on the roadmap? Thanks -Barry
  12. Thanks, but yes, I was looking for a clean way to do it. We need to create/delete the sub-company multiple times during testing, and there will be transactions/services created. Regards, -Barry
  13. Title says it all. In a multi-company setup, how can I completely delete one of the sub-companies? right now this is to be able to remove a sub-company from my dev system, where AFAIK only one additional company is allowed. We need to test programatically creating a new sub-company but run into the problem of how to delete the one that is already there! Thanks -Barry
  14. Hi Blesta will allow me to un-install a module, even though the module has live services. Is this intentional? Is there any way to ensure that all services are cancelled prior to allowing a module to be un-installed? Thanks -Barry
  15. That's great, thanks. I have opened a ticket. -Barry
  16. Hi I received and installed my developer license. However, I need to be able to develop multi-company - is it possible to use multi-company with a dev license? Thanks -Barry
  17. We are also well under way with integrating Blesta with our VoIP platform. I have to agree, Blesta can handle it. As we delve deeper into Blesta we are continuously impressed at how well thought out the platform is. -Barry
  18. So setTabs is not valid in the Client area then? The documentation states ""In all of the examples below simply replace Widget with WidgetClient if working in the client interface." Perhaps this should be updated. Thanks -Barry
  19. Sorry, maybe I didn't make myself clear. I am not referring to us being a wholesaler of Blesta itself. What I mean is we are wholesaling certain services, and want to provide our resellers with their own Blesta-based "company" with its own URL as a means to manage their end-user customers. We have all the information on their customers anyway - giving them their own Blesta-based "company" allows them to brand it as they wish, with its own URL for the client portal, etc. and their own staff logins. From a security or law point of view this is no different than keeping all of this under one instance (company) of Blesta, where we would hold all data on all resellers and their customers, so I don't see that as an issue at all. Regards, -Barry
  20. Hi I am trying to use tabs in a plugin widgit, but they just result in a blank page. If I change setTabs to setLinks it works fine. No errors, although I can't seem to turn on error reporting in Blesta (any pointers on that?) Am I doing something wrong or are tabs not allowed in the Client portal? Here is the code: $tabs = array( array('name'=>"Preferences", 'current'=>true, 'attributes'=>array('href'=>$this->base_uri . "widget/test/client_main/prefs/")), array('name'=>"Calls", 'attributes'=>array('href'=>$this->base_uri . "widget/test/client_main/calls/")), array('name'=>"Voicemail", 'attributes'=>array('href'=>$this->base_uri . "widget/test/client_main/voicemail/")), array('name'=>"Call Barring", 'attributes'=>array('href'=>$this->base_uri . "widget/test/client_main/barring/")), array('name'=>"Call Forward", 'attributes'=>array('href'=>$this->base_uri . "widget/test/client_main/forwards/")), array('name'=>"Reminder", 'attributes'=>array('href'=>$this->base_uri . "widget/test/client_main/reminder/")) ); $this->WidgetClient->clear(); $this->WidgetClient->setTabs($tabs); $this->WidgetClient->create("Voice Settings", true); ?> <div class="pad"> <div class="table_sec"> <div class="inner"> <div class="empty_section"> <div class="empty_box"> Hello </div> </div> </div> </div> </div> <?php $this->WidgetClient->end(); Thanks -Barry
  21. Hi We will be providing a wholesale service, so our customers will be comprised of resellers. We would like for each reseller to have their own self-contained Blesta site, where they in turn can manage their customers/packages etc. with their own staff Is Multi-company suitable for such a scenario, or is it only for one operator who is trading as multiple companies? Thanks -Barry
  22. On the subject of custom pdt files getting over-written - it would be a good idea if blesta supported a "custom" pdt file naming convention. For example, if file client_tickets_departments.pdt is the original, and I want to make a change, I can create a file client_tickets_departments_custompdt.pdt. Blesta then for any pdt file, if it sees a _custompdt.pdt it will use this instead of the normal .pdt file. This would mean there was no possibility of any custom view templates being over-written during an upgrade, and make it very easy to see which files have been customised. -Barry
×
×
  • Create New...