Jump to content

coreyman

Members
  • Posts

    58
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by coreyman

  1. coreyman

    User API Access

    You wouldn't need someone familiar with blesta functions to create the API. Just someone that is familiar creating API's. I use freelancer.com for work that I hire out.
  2. coreyman

    User API Access

    You would need to develop this functionality into blesta, or create your own API. Currently the blesta api offers full access to all functions of blesta so your customer would have access to everything, including other customers data. Administrators do not have have granular controls on what access API users have at the endpoints, and probably never will due to the way the blesta api works.
  3. coreyman

    Delete client

    http://source-docs.blesta.com/class-Clients.html Looks like you need to use class Clients. getByUserId( integer $user_id, boolean $get_settings = false ) Fetches a client with contact details of the primary account holder Parameters $user_id integer $user_id The ID of the user Then you can delete by client id #delete( integer $client_id )
  4. Yes, because my mailserver puts incoming mail in the root of the mailbox. It requires no box name. By default outlook looks here for mail, you have to manually configure outlook to look in .INBOX. I think .INBOX is a 'cpanel' constructed way of configuring a mail server.
  5. Thanks! Will be backing up everything prior to import.
  6. I setup a few users manually in blesta. I'm about to run a large WHMCS import that spans 6 years of data and has some of the same users. Should I just remove the users out of blesta that I also have in WHMCS, or does it not matter?
  7. I get the following when running the cron - /usr/bin/php /var/www/xxx/index.php cron Attempting to run all tasks for BitAccel. Attempting to apply credits to open invoices. Attempting to apply credits for client group General. Completed applying credits for client group General. There are no invoices to which credits may be applied. The apply credits task has completed. Attempting to deliver invoices scheduled for delivery. No invoices are scheduled to be delivered. The deliver invoices task has completed. Attempting to provision paid pending services. The paid pending services task has completed. Attempting to unsuspend paid suspended services. The unsuspend services task has completed. Attempting to process service changes. The process service changes task has completed. Attempting to process renewing services. The process renewing services task has completed. Attempting plugin cron for order accept_paid_orders. Finished plugin cron for order accept_paid_orders. Attempting plugin cron for support_manager poll_tickets. Finished plugin cron for support_manager poll_tickets. Attempting plugin cron for mass_mailer export. Finished plugin cron for mass_mailer export. Attempting plugin cron for mass_mailer mass_mail. Finished plugin cron for mass_mailer mass_mail. All tasks have been completed. Attempting to run all system tasks. All system tasks have been completed. I'm seeing successful login attempts to the mail server. I'm waiting 5 minutes between running it, and the scheduled task for ticket import is scheduled to run every 5 minutes. I disabled the cron while I was running it manually. I do see this in general-notice log but it's not generated each time I check mail, and it's currently 14:51:51 on my server. [2019-01-25 19:45:03] general.NOTICE: E_NOTICE: iconv(): Detected an illegal character in input string {"code":8,"message":"iconv(): Detected an illegal character in input string","file":"/var/www/xxx/plugins/support_manager/vendors/mime_mail_parser/MimeMailParser.class.php","line":342} No other logs are being populated for today. total 180 drwxr-xr-x 2 www-data www-data 4096 Jan 25 12:00 . drwxr-xr-x 7 root root 4096 Dec 7 13:22 .. -rw-r--r-- 1 www-data www-data 2091 Dec 4 17:45 general-error-2018-12-04.log -rw-r--r-- 1 www-data www-data 1195 Dec 5 08:57 general-error-2018-12-05.log -rw-r--r-- 1 www-data www-data 14556 Dec 7 13:10 general-error-2018-12-07.log -rw-r--r-- 1 www-data www-data 879 Dec 8 16:05 general-error-2018-12-08.log -rw-r--r-- 1 www-data www-data 3539 Dec 4 17:49 general-info-2018-12-04.log -rw-r--r-- 1 www-data www-data 11635 Dec 5 10:05 general-info-2018-12-05.log -rw-r--r-- 1 www-data www-data 104 Dec 7 08:32 general-info-2018-12-07.log -rw-r--r-- 1 www-data www-data 787 Dec 8 16:06 general-info-2018-12-08.log -rw-r--r-- 1 www-data www-data 263 Dec 16 23:30 general-info-2018-12-17.log -rw-r--r-- 1 root root 2055 Dec 20 11:00 general-info-2018-12-20.log -rw-r--r-- 1 root root 2271 Jan 2 10:05 general-info-2019-01-02.log -rw-r--r-- 1 root root 11481 Jan 3 14:00 general-info-2019-01-03.log -rw-r--r-- 1 www-data www-data 1461 Jan 8 15:00 general-info-2019-01-08.log -rw-r--r-- 1 root root 615 Jan 9 10:00 general-info-2019-01-09.log -rw-r--r-- 1 www-data www-data 10453 Jan 19 12:05 general-info-2019-01-19.log -rw-r--r-- 1 www-data www-data 1587 Dec 4 17:02 general-notice-2018-12-04.log -rw-r--r-- 1 www-data www-data 12443 Dec 5 15:10 general-notice-2018-12-05.log -rw-r--r-- 1 www-data www-data 530 Dec 6 14:35 general-notice-2018-12-06.log -rw-r--r-- 1 www-data www-data 12455 Dec 7 13:20 general-notice-2018-12-07.log -rw-r--r-- 1 root root 1204 Jan 22 16:05 general-notice-2019-01-22.log -rw-r--r-- 1 root root 2408 Jan 23 14:20 general-notice-2019-01-23.log -rw-r--r-- 1 root root 376 Jan 23 19:50 general-notice-2019-01-24.log -rw-r--r-- 1 root root 1204 Jan 25 13:45 general-notice-2019-01-25.log -rw-r--r-- 1 www-data www-data 436 Dec 5 08:21 general-warning-2018-12-05.log -rw-r--r-- 1 www-data www-data 379 Dec 7 13:25 general-warning-2018-12-07.log -rw-r--r-- 1 root root 698 Dec 27 12:15 general-warning-2018-12-27.log -rw-r--r-- 1 www-data www-data 1090 Jan 8 15:00 general-warning-2019-01-08.log -rw-r--r-- 1 www-data www-data 218 Jan 19 12:04 general-warning-2019-01-19.log I see my test message I sent the department in the IMAP folder via outlook. The checkbox for this department is not checked for 'Allow only clients to open or reply to tickets' I thought my "Box Name" setting must be wrong. I have the mailserver setup to store mail in the default directory, not .INBOX When I try to set BOX NAME to blank it doesn't let me. I went into SQL and set it to blank manually AND IT WORKS mail_location = maildir:/var/mail/vhosts/%d/%n %d is domain , %n is the username Can someone please fix the issue where the form doesn't allow you to set a blank box_name per department as our mailserver is setup this way. It took me forever to figure this out. Hopefully if anyone else has a mail issue they can read my thread for troubleshooting tips.
  8. Yes importing via POP/IMAP. PHP has mailparse - php -m [PHP Modules] calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext gmp hash iconv imap ionCube Loader json libxml mailparse mbstring mcrypt mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql Phar posix readline Reflection session shmop SimpleXML sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl Zend OPcache zlib I do see login attempts in the auth logs of my mail server when executing the cron manually.
  9. So email ticket importing was working, but now it's stopped working and I didn't know. No notifications on the dashboards, not seeing any errors. Running the cron manually is successful. Where do I begin troubleshooting this? I've looked in logs_blesta and I don't see anything. I enabled error logging in blesta configuration and ran the cron, no errors. I added the mail accounts manually to my email client to verify the connection details and I can see tons of mails there that aren't in blesta as tickets.
  10. Are you able to see the SMTP logs while the mail is attempting to be sent? What about your php logs and blesta logs as well? These logs should give some clues.
  11. I know how obvious that is, but I didn't even pay attention to it
  12. If anyone wants to know how much an owned unbranded license is worth second hand. I just paid $150+support and updates for a year from @evolvewh
  13. I just upgraded to 4.4.1 and... so this magically works in 4.4.1 now? Weird! (I thought I had selected the latest version from the files area, but was confused and thought 4.3.2 was the latest because it is on the bottom right.)
  14. Not running any type of quota. root@billing:/tmp# du -ah 4.0K ./.XIM-unix 0 ./PDNr4K 0 ./7Ufyx7 4.0K ./.Test-unix 0 ./wONG5v 0 ./3vrMpN 0 ./MclWBS 0 ./nycUFr 4.0K ./.ICE-unix 0 ./zrWW0n 4.0K ./.X11-unix 4.0K ./.font-unix 24K . root@billing:/tmp# df -h Filesystem Size Used Avail Use% Mounted on udev 236M 0 236M 0% /dev tmpfs 50M 3.5M 46M 8% /run /dev/vda1 49G 3.1G 43G 7% / tmpfs 247M 0 247M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 247M 0 247M 0% /sys/fs/cgroup tmpfs 50M 0 50M 0% /run/user/0
  15. I did check Settings > System > General > Basic Setup prior to posting and they are writable. (Check image below). Why would the H2o library not be able to save to /tmp ? It seems to be creating files there that are 0 bytes. This is a fresh debian stretch install. Here is the file it just created when I tried to send a mail - -rw------- 1 www-data www-data 0 Dec 7 12:27 wONG5v
  16. I completely understand that, but you did say you would pay more for it to work
  17. I'd rather not build PHP from scratch and use the packages provided by debian. If I knew what the problem was I could fix it, but the error is very cryptic.
  18. So I noticed I was getting a white screen when sending a client an email from the link on their profile page. https://billing.xxx.com/admin/clients/email/11/ I enabled error logging and it complained about not being able to write to general-notice-* so I fixed permissions on there. Inside this file is the following - [2018-12-07 14:50:01] general.NOTICE: E_NOTICE: tempnam(): file created in the system's temporary directory {"code":8,"message":"tempnam(): file created in the system's temporary directory","file":"/var/www/xxx/vendors/h2o/h2o/loaders.php","line":179} Something went wrong. tempnam(): file created in the system's temporary directory I went to the file created in /tmp and it is blank. The email does not send to the client. Oddly enough, the mass mail is working. I also checked the following logs and didn't find anything interesting - /var/log/messages Dec 6 12:22:45 billing kernel: [ 131.527370] random: 7 urandom warning(s) missed due to ratelimiting Dec 7 06:25:02 billing liblogging-stdlog: [origin software="rsyslogd" swVersion="8.24.0" x-pid="326" x-info="http://www.rsyslog.com"] rsyslogd was HUPed /var/log/apache2/error.log [Fri Dec 07 06:25:03.296078 2018] [mpm_event:notice] [pid 402:tid 139740527572160] AH00489: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations [Fri Dec 07 06:25:03.296123 2018] [core:notice] [pid 402:tid 139740527572160] AH00094: Command line: '/usr/sbin/apache2' /var/log/apache2/access.log xx.xxx.x.xxx - - [07/Dec/2018:09:02:47 -0600] "POST /admin/clients/email/11/ HTTP/1.1" 200 1018 "https://billing.xxxx.com/admin/clients/email/11/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36" /var/log/php7.1-fpm.log [06-Dec-2018 12:19:11] NOTICE: Terminating ... [06-Dec-2018 12:19:11] NOTICE: exiting, bye-bye! [06-Dec-2018 12:20:36] NOTICE: fpm is running, pid 341 [06-Dec-2018 12:20:36] NOTICE: ready to handle connections [06-Dec-2018 12:20:36] NOTICE: systemd monitor interval set to 10000ms All temporary files created today are 0 bytes. -rw------- 1 www-data www-data 0 Dec 7 08:46 2QJW6O -rw------- 1 www-data www-data 0 Dec 7 08:49 9smxqF drwxrwxrwt 2 root root 4096 Dec 6 12:20 .font-unix drwxrwxrwt 2 root root 4096 Dec 6 12:20 .ICE-unix -rw------- 1 www-data www-data 0 Dec 7 08:47 Px1mrH drwx------ 3 root root 4096 Dec 6 12:20 systemd-private-c67d225481514f8c98b3e6de18b4ca44-apache2.service-4uzAF7 drwx------ 3 root root 4096 Dec 6 12:20 systemd-private-c67d225481514f8c98b3e6de18b4ca44-systemd-timesyncd.service-zPBdFo drwxrwxrwt 2 root root 4096 Dec 6 12:20 .Test-unix -rw------- 1 www-data www-data 0 Dec 7 08:33 vgH0r1 drwxrwxrwt 2 root root 4096 Dec 6 12:20 .X11-unix drwxrwxrwt 2 root root 4096 Dec 6 12:20 .XIM-unix -rw------- 1 www-data www-data 0 Dec 7 08:50 ZhERpV Anyone have any ideas?
  19. Yes. Sorry I wasn't more clear. It was a 2checkout issue and 2checkout refused to fix it.
  20. Put your money where your mouth is. I'm sure you could hire any number of blesta developers that could finish this out for you and you wouldn't need to use WHMCS and could contribute the work to Blesta.
  21. I had this same issue on WHMCS years ago. They refused to fix the issue.
  22. Thanks. Liking it so far. One thing I haven't quite ironed out but working to resolve it. Yes I do Lampard!
  23. All of these systems are made to be customized. With that in mind, I would probably be interested in buying your license.
  24. mcrypt is not available by default for php7.3 so you have to use PECL to install it. I followed the tutorial here (Even though it says php7.2) https://lukasmestan.com/install-mcrypt-extension-in-php7-2/
  25. coreyman

    PHP7.3 Mailparse

    I'm reading in the blesta requirements that 'mailparse' is recommended. https://docs.blesta.com/display/user/Requirements I am unable to compile mailparse to work with php7.3 due to it thinking mbstring is not there but the packge is installed "php7.3-mbstring is already the newest version (7.3.0~rc6-1+0~20181125111811.22+stretch~1.gbp3c599f)" . I tried the following but still get compile errors. https://stackoverflow.com/questions/35793216/installing-mailparse-php7-mbstring-error My php.ini says mbstring is installed and functioning. I'm reading the blesta "readme" and it says ### Note for PHP 7.0 Users If you are running PHP 7.0, **you must** apply the hotfix from _/hotfix-php7/blesta/_ to _/blesta/_ before uploading files to your web server. Does this apply to php7.3 as well? ( I installed php7.1 and all dependencies and blesta is working great. Wondering when we will have ioncube license file for 7.3 as General availability is in 2 days) mbstring Multibyte Support enabled Multibyte string engine libmbfl HTTP input encoding translation disabled libmbfl version 1.3.2 oniguruma version 6.9.0 Zend Multibyte Support provided by mbstring I'm assuming I will not be able to pipe in emails to the ticket system because the installer tells me The mailparse extension is required for parsing incoming emails.
×
×
  • Create New...