@davidkumi, if you try the display_error instead of js .it will help you to know the reference iterates or not.
So try display_error instead of this.
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 kvvaradha
@davidkumi, if you try the display_error instead of js .it will help you to know the reference iterates or not.
So try display_error instead of this.
@joe has to answer it.
i have modified it to some FA users to adapt with php7.
@davidkumi, I guess the code has issues with parsing the regrex, so here is the function code, just try display_error to check the inputs.
function get_next($type, $line=null, $context=null)
{
if (isset($line))
$refline = $this->reflines->get($line);
else {
$refs = $this->reflines->get_all("trans_type=".db_escape($type)." AND `default`");
$refline = db_fetch($refs);
}
if ($this->_legacy_line($refline))
return $refline['pattern'];
return $this->_parse_next($type, $refline['prefix'].$refline['pattern'], $context);
}
and the display_error function
display_error($type.'---'.$line.'---'. $context);
Try to change the exchange provider and check it.
$xr_providers = array("ECB", "YAHOO", "GOOGLE", "BLOOMBERG");
$dflt_xr_provider = 2;
change it from your config.php .
And also enable debugging mode to see whether it throws any error during conversions.
@apmuthu, I am using php7.1 and all my demo FA's are working fine.
I see those warnings after login. After i open next page those will disappear, and didnt throw any error.
@tsalameh, if it works fine with 5.3. stay with that version.
@apmuthu , I guess this is acceptable way.
$path_to_root="..";
if you are using it from within your custom module
$path_to_root="../../..";
include_once($path_to_root . "/includes/session.inc");
This problem exist, if you login from mobile. There is some sessions issues for mobile logins.
That's only way, you need to edit the code of reference and put it as of your needs. Me too changed it like this. i mean the reference functions to create custom reference prefix
I am already working with him for this issue. That's core issue. Which is not importing to the right company, it always imports to the default company or the prefix in the sql file.
Glad to fix a simple bug
ok
I have a solution for this issue,
goto file manager and followed by this path
[Root_of_your_fa/gl/inquiry/journal_inquiry.php edit this file and find this below code.
$sql = get_sql_for_journal_inquiry(get_post('filterType', -1), get_post('FromDate'),
get_post('ToDate'), get_post('Ref'), get_post('Memo'), check_value('AlsoClosed'));
Here change this code to
$sql = get_sql_for_journal_inquiry(get_post('filterType', -1), get_post('FromDate'),
get_post('ToDate'), get_post('Ref'), get_post('Memo'), check_value('AlsoClosed'),get_post('userid'));
than it will work.
@joe commit this change on your next commit.
may be this help you to get solution. https://frontaccounting.com/punbb/viewtopic.php?id=5750
@urnexgen - The mobile edition things are not updated I guess. it may work on older versions. The fa 2.4.2 has some db change and function change.so may be it's not fitting to work.
If you are planning to get mobile responsive theme,you can check my theme here at Kvcodes Vanigam theme
@poncho1234 - you can get it here https://frontaccounting.com/wbt/pages/download/download-release-2.3.php.
Those are php version issues.no need to worry about it, even though the code will work, try to create a sample sales quotation and see if any errors you see while doing that or not.
Update us the errors,if possible screenshot, so we can assist you in the error.
It might have some errors with permissions or problem with script execution.
Can you enable debugging mode and tell us what kind of errors you see on the each page.
Enabling Debugging mode :
Goto the file manager and followed by root of your Frontaccounting directory(Folder), than open the config.php
And find the
$go_debug = 0;
And change it to
$go_debug = 1;
Save and run FA on browser.
It imported on company A, I had this kind of issue before. Probably you need to convert the second company separately and than import it .
You should use the same FA versions to restore the backup. And also your php maximum time out may cause the issue.
If its wikied, thats good for users while checking manual to work on OpenVZ. If you add screenshots,hope that helpful to others.
Thanks for the advice. Actually providing the whole may help to fix the issue.
anyhow let me tell you the solution, it may either helpful to someone who makes db_pager and stuck this issue,
This one wont work
include($path_to_root . "/includes/session.inc");
include($path_to_root . "/includes/db_pager.inc");
and this works fine.
include($path_to_root . "/includes/db_pager.inc");
include($path_to_root . "/includes/session.inc");
So the problem is not getting session before pager class.
$cols = array(
_("Empl Id") => array('name'=>'empl_id'),
_("Empl Name") => array('name'=>'empl_name'),
_("Email") => array('name'=>'email'),
_("Mobile No") => array('name'=>'email'),
_("Department") => array('name'=>'email'),
_("Grade") => array('name'=>'grade'),
_("Present Address") => array('name'=>'present_address'),
_("Date of Join") => array('name'=>'tran_date', 'type'=>'date'),
array('insert'=>true, 'fun'=>'edit_link'),
array('insert'=>true, 'fun'=>'delete_link')
);
$table =& new_db_pager('info', $sql, $cols, null, null, 2);
$table->set_marker('is_inactive', _("Marked Employees are either Terminated,Retired,Deceased,Suspended."), 'warning_msg', 'warning_bottom_msg');
$table->width = "80%";
display_db_pager($table);
This code within the form and ofcourse it works fine for the core functions like search dimension and gl inquiry.
I think, its not a problem (include_once or $path_to_root). May be the functionality i wrote is not right.
new_db_pager(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "db_pager" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in file: /var/www/fa/242/includes/db_pager.inc at line 487
I can't identify the reason for this issue, when the db_pager loads it works fine, But when i click on next page. it throws the above error.
How do i solve this issue. ?
FrontAccounting forum → Posts by kvvaradha
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.