Pulled in and updated Unofficial Extensions Repo.
@apmuthu does not seem to have pulled through. Re-downloaded the file from your link, but that file has not changed same error.
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → Posts by seahawk
Pulled in and updated Unofficial Extensions Repo.
@apmuthu does not seem to have pulled through. Re-downloaded the file from your link, but that file has not changed same error.
oh good catch! I didn't even notice that.
In the new file in the function pass the $filename then add the check if it is passed like the old version then pass it to 2nd argument in phpmailer addAttachement function. In the end the function should be this
public function attachment($file, $filename=null) { if (!isset($filename)) $filename = basename($file); $this->phpmailer->addAttachment($file, $filename); }
Changed it in my file and it works and display correctly now. Thanks @trafficpest.
@traficpest I installed the extension, took me a while but eventually got it.
It works great and just one issue, the old system have the attachment as the Invoice number, but on this mailer the attachment is just a long set of numbers.
Had a quick look at the code in class.mail.inc for both files:
Old File at line 68:
function attachment($file, $filename=null)
{
if (!isset($filename))
$filename = basename($file);
$this->attachment[$filename] = $file;
}
New replacement file line 116:
public function attachment($file) {
$this->phpmailer->addAttachment($file);
}
How do we change that to use the invoice number instead of a long list of codes on the pdf attachment?
I agree, it becomes an issue with more and more servers and client email servers.
I can set up my mail server to send emails in my Joomla Installation. Works better than via the current setup in FA.
I now save my invoices and send them via Outlook.
Get the following message after the above updates:
"This edit session has been abandoned by opening sales document in another browser tab. You cannot edit more than one sales document at once."
This happened after I loaded a new customer and wanted to issue a direct invoice. I was still in the same tab. Using Edge.
On the setup Tab/ Company Setup gives the following error when adding the company logo and selecting update:
Creation of dynamic property TCPDF::$padding is deprecated in file: /home/mysite/public_html/accounts/reporting/includes/tcpdf.php at line 1172
I understand that you guys are very busy.
Anyhow, I am sure the fixes are ok and I am pushing the files to stable repo now.
Joe
Thank you for the changes. I have updated it as indicated by you and it works, the errors have gone.
Sorry for not coming back earlier, I did not receive the notification.
I appreciate your assistance. I trust that this will be correct in future updates.
It seems that there were several requests over the years for a POS in FA.
In searching all the information it seems that very few if any of the suggestions ever materialised except one that I could find that has updates https://sourceforge.net/projects/chromispos/
Is there a possibility of an integration between these software? Unless someone else has an alternative constructive idea.
Second related question: Can you link a till printer to the standard FA installation to print a small Till printer invoice instead of an A4 size page?
When I set my PHP to 8.2 with FA 2.4.17 the following error shows:
Creation of dynamic property front_accounting::$renderer is deprecated in file: /home/mydomain/public_html/accounts/frontaccounting.php at line 66 in Sales TAB when FA opens. When I refresh the page the error goes away.
When I switch back to php 8.1 it goes away.
--------------------------------------------------------
Another error on PHP 8.2 when you want to add a new direct invoice for a client:
Unhandled exception [0]: Attempt to assign property "reference" on null. in file: /home/mysite/public_html/accounts/sales/sales_order_entry.php at line 267
----------------------------------------------------------------------------------------------
Another PHP8.2 Error when you do a trial balance in Exel
Creation of dynamic property Spreadsheet_Excel_Writer_Parser::$ptg is deprecated in file: /home/mysite/public_html/accounts/reporting/includes/Workbook.php at line 2412
There are 26 lines of errors in workbook.php
Creation of dynamic property FrontReport::$formatRight is deprecated in file: /home/mysite/public_html/accounts/reporting/includes/excel_report.inc at line 127
6 lines of errors in excel_report.inc
Another PHP8.2 Error when you do a trial balance in Exel
Creation of dynamic property Spreadsheet_Excel_Writer_Parser::$ptg is deprecated in file: /home/mysite/public_html/accounts/reporting/includes/Workbook.php at line 2412
There are 26 lines of errors in workbook.php
Creation of dynamic property FrontReport::$formatRight is deprecated in file: /home/mysite/public_html/accounts/reporting/includes/excel_report.inc at line 127
6 lines of errors in excel_report.inc
Another error on PHP 8.2 when you want to add a new direct invoice for a client:
Unhandled exception [0]: Attempt to assign property "reference" on null. in file: /home/mysite/public_html/accounts/sales/sales_order_entry.php at line 267
This is the content before and after line 66 in the frontaccounting.php file.
function display()
{
global $path_to_root;
include_once($path_to_root . "/themes/".user_theme()."/renderer.php");
$this->init();
$rend = new renderer();
$rend->wa_header();
$rend->display_applications($this);
65 $rend->wa_footer();
66 $this->renderer =& $rend;
67 }
When I refresh the page it goes away. Do not know what is the issue?
Has this issue been resolved?
It seems that The warning message I am seeing is related to the use of a feature in PHP called “dynamic properties”. Dynamic properties allow you to set and get object properties by using variable names, like you are doing in the __construct method of your database class. They indicate that this feature has been deprecated in PHP 8.2 and later versions.
How do we fix this in the frontaccounting.php?
I am using FA 2.4.17 and PHP 8.2
See the lines in the comment below.
That happens when I updated FA to 2.4.17. Email an invoice to a client and that is what the client receives.
Then I will replace the standard class.mail.inc with the the one I have changed as indicated. by changing all the \n code in the file to \r\n and it works on both PHP7.4, HP8.0, 8.1 and 8.2.
Then it sends the invoice correctly as a PDF attachment.
This is what I receive in the email if I am lucky enough to get one without my changes to the file above:
--d6d94ed3a97c22d3af03070ba9b0c91c
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
JVBERi0xLjMKMS4wMCB3CjMgMCBvYmoKPDwvVHlwZSAvUGFnZQovUGFyZW50IDEgMCBSCi9N
ZWRpYUJveCBbMCAwIDU5NS4yOCA4NDEuODldCi9SZXNvdXJjZXMgMiAwIFIKL0NvbnRlbnRz
IDQgMCBSPj4KZW5kb2JqCjQgMCBvYmoKPDwvRmlsdGVyIC9GbGF0ZURlY29kZSAvTGVuZ3Ro
IDE1MDU+PgpzdHJlYW0KeJzVWltT2zgUfs+vOC87284QV5IlX3hqIKGTTqEUvO3utn0QsQLe
+gKyDU1//Up2LnISCJ1p7OkwdpBzLH/nO1cpxhZC8AAI3qrjP/j8VX2E6nijjuveUQCvTjBg
oqWCKYyCHv7ZG5DlIQrm+eJNj1az9JjD9D+O5+mPpEeRMYx7cDl/nJqEIQLmWU2Cf3oSz8Xq
dh85+kwYyOu5NPMrxIxUU/Vxda8UMF17yFwuad5mPmRN3qUN+Xr4hDxzGvL18LlKEPQ8JWq5
pHnbE6BQU2m0Q2lMGkrMh6Z8g72tytIm3YuxIUJYc5LF2BCxWXOWxdgQoc4aFGdjlnXTN01V
z2ISuU1v6tOmRD02RdaN0ySzErkDTD2LqThSf/VDaGVk168GkwRejTEMM/hQRyJpROLikr0z
mrdEG2x1vDsd9aAmnuNwK3hBCJ9fDO7KKI45DML7KM9kDpPJy68QvFWPhQ/6FqxR/FgCww1g
W7AuLvm/FL7lUtY4y1ofYlvMrxRy/VqhYPA3jM8+vh8fj3Yp4q+hxvCLQSM1hXmWphEcx7K9
GvM4ncRlGKXXsDBHIHmUqgsrFfYPiNEloPP3cJR9B+ywNgFQsgTwhst8mqWFiNIDOJeiyGTE
DwAhSgxEldXsVq1moxVJN1kqHvOx/QHBaAMJ8mzHdRBluH04c15UGVugOeHfu2PFwIE8Bxhm etc.
With the changes implemented as indicated above, a pdf copy is correctly received as an attachment to the email and a proper email.
Just changed it and tested and now it mails to client and to admin in the copy to email address in company setup.
The standard class.mail.inc sends nothing.
Replaced /n with /r/n and it works again.
With the 2.4.17 this issue is still there. It seems that the reporting/includes/class.mail.inc is still not fixed. With every update the new file is overwritten and we are back to the same issue.
When I replace the core file with the change information as indicated below it will send the emails and attachments as expected.
"I have found the solutions by changing all the \n code in the file to \r\n and it works on both PHP7.4 and PHP8.0
Emails are now sending and displaying correctly when sent from FA.
\r\n is for a new line in windows as for \n in the new line in Linux.
Use \r\n instead of \n for your implode -- explicitly specifies CRLF as the line terminator."
Why are we keep on having the same issue irrespective of the PHP it is set on?
Is no one else have the same issue?
When I set my PHP to 8.2 with FA 2.4.17 the following error shows:
Creation of dynamic property front_accounting::$renderer is deprecated in file: /home/mydomain/public_html/accounts/frontaccounting.php at line 66
When I switch back to php 8.1 it goes away.
The aged Customer Analysis differs from the customer Balance report.
As can be seen from the two attachments, the Customer balance shows correctly whilst the Aged Customer analysis does not.
The Customer balance sees the journal as a credit, while the Aged Customer Analysis see the same journal as a debit.
I cannot upload the second file.
It still displays the information requested, will the errors on top of the info. Irrespective of the setting for the php.ini file display_errors = Off or On, the info still displays
There is nothing in the error logs.
See something here https://stackoverflow.com/questions/74862088/warning-trying-to-access-array-offset-on-value-of-type-bool-error-when-upgrading
It seems something in the customer_inquiry.php is the issue.
When selecting All Customers, there is no error. When selecting any other customer, receive the error. It seems to only throw the error on certain customers. For other customers, there is no problem.
Version 2.4.16 and PHP 8.0
Sorry for omitting that.
As far as I am aware, the cash accounts and savings accounts cannot go into negative. Chequing and credit accounts would. Select the correct type of account
On the setup tab for company setup/ there is a tick box for Search Customers. Switch that on and see if that is what you are looking for.
Just tested it and if you select the search function direct invoice with company address it will display that.
Go to gl reports and save the format that you need in CSV instead of PDF.
You can also install the Transaction import module under Install/Activate Extensions on Setup Tab/ Maintenance.
I found a solution for the reporting/includes/class.mail.inc when I got the issue with the same thing.
I have found the solutions by changing all the \n code in the file to \r\n and it works on both PHP7.4 and PHP8.0
Emails are now sending and displaying correctly when sent from FA.
\r\n is for a new line in windows as for \n in the new line in Linux.
Use \r\n instead of \n for your implode -- explicitly specifies CRLF as the line terminator.
FrontAccounting forum → Posts by seahawk
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.