Seems like your database is exist. Only the connectivity problem happens.

If that's docker installed you can check php-MySql missing to work . But directly you are accessing database that works.

Copy the database and program files to other server and try configure it again and check it

27

(16 replies, posted in Report Bugs here)

Update your FA to make it work.

With this code

 srand ((double) microtime( )*1000000); 

we are getting error like this in sometime Implicit conversion from float 517375.00000000006. due to the double in it. so lets convert this into int.

 srand ((int) microtime( )*1000000); 

 

make this change on items.php to take effect.

29

(57 replies, posted in Installation)

@joe,

Many users face this problem. Instead accessing repo and download index everytime. Why don't we have the basic index files of _cache directory in it.

30

(1 replies, posted in Setup)

Both are possible with FA.  It's upto you, but it's good to have small financial for better year closing and balance forwarding process.

FA officially supports php 8.0. Don't go more than this.

I am feeling this change will get it worked.

@joe consider checking it on php 8.1 and 8.2 with existing code and also my new function of db_query



function db_query($sql, $err_msg=null)
{
    global $db, $SysPrefs, $sql_queries, $Ajax,    $db_connections, $db_last_inserted_id;

    // set current db prefix
    $comp = isset($_SESSION["wa_current_user"]->cur_con) ? $_SESSION["wa_current_user"]->cur_con : 0;
    $cur_prefix = @$db_connections[$comp]['tbpref'];
    $sql = str_replace(TB_PREF, $cur_prefix, $sql);

    if ($SysPrefs->show_sql)
    {
        $Ajax->activate('footer_debug');
        $sql_queries .= "<pre>$sql</pre>\n<hr>";
    }

    db_profile(); // mysql profiling

    $retry = MAX_DEADLOCK_RETRY;
 try { //kvvaradha added try and catch 
    do {
        $result = mysqli_query($db, $sql);
        if (mysqli_errno($db) == 1213)    { // deadlock detected
            sleep(1); $retry--;
        } else {
            throw new mysqli_sql_exception("Deadlock detected: $sql", 1062); //kvvaradha added to through the error in an exception and handle it on catch 
            $retry = 0;
        }
    } while ($retry);

    db_profile($sql);

    if($SysPrefs->sql_trail) {
        $db_last_inserted_id = mysqli_insert_id($db);    // preserve in case trail insert is done
        if ($SysPrefs->select_trail || (strstr($sql, 'SELECT') === false)) {
            mysqli_query($db, "INSERT INTO ".$cur_prefix."sql_trail
                (`sql`, `result`, `msg`)
                VALUES(".db_escape($sql).",".($result ? 1 : 0).",
                ".db_escape($err_msg).")");
        }
    }
 } catch (mysqli_sql_exception $e) {. //kvvaradha added catch 
        $error_msg = $e->getMessage();
        $error_code = $e->getCode();
    if ($err_msg != null || $SysPrefs->go_debug) {
        $exit = $err_msg != null;
        if (function_exists('xdebug_call_file'))
            $err_msg = '<br>At file '.xdebug_call_file().':'.xdebug_call_line().':<br>'.$err_msg;
        check_db_error($err_msg, $sql, $exit);
    }
 throw $e; // rethrow the exception after handling
    }
    return $result;
}

I added error handling with try catch inorder to get the detailed query during the time of mysqli_sql_exception.

33

(16 replies, posted in Report Bugs here)

FA is not fully ready for php8.2. It's still having several updates. So wait for next major release to move forward with php 8.2

I have made a video for the demonstration.  You can get the overview of the app and fuctionalities from it.

Kvcodes POS Demonstration video

For this issue. We should update on our FA program. I guess not on wiki. People needs to move to next php versions. So it's important to fix in core of FA

36

(1 replies, posted in Report Bugs here)

Issue is not with octet stream 

Open your FA/includes/session.inc

Find the top constant defined SECURE_ONLY as true. It will work . Suppose if it's true.

Your ssl May not work. Ask your hosting provider to fix ssl.

If that's not a problem. Try open the site with https. It will solve the problem. If still not the site has https.  Take screenshot and share it here.

@Mizanur Rahman,

We have  Android POS App for  FrontAccounting. Which will works based on Slim 4 Rest api and Access token based. And performs all your Sales activity such as Sales order, Invoice, payment, and credit note with it.

Demo apk can be provided.   Knock me

When we even turn on the go_debug 2. that doesnt get the mysql errors like 1062 duplicate entry, 1054 column not found errors are not showing the query which get this error.  But in php 8.0 it works fine.

We need to update the error handler or fix it work based on php 8.2

39

(7 replies, posted in Installation)

Hi Still you didnt enable debugging mode i guess.
Because once you enable the debugging mode the system will show errors instead of this screen.

Enable Debugging mode on FA

And than take a screenshot from browser You can see the error in it

from db_pager_view.inc file, we have a function navi_button which actually passes the img tag to get icons like this.

function navi_button($name, $value, $enabled=true, $icon = false) {
    global $path_to_root;
      return "<button ". ($enabled ? '':'disabled')
          ." class=\"navibutton \" type=\"submit\""
        ." name=\"$name\"  id=\"$name\" value=\"$value\">"
          .($icon ? "<img src='$path_to_root/themes/".user_theme()."/images/".$icon."'>":'')
        ."<span>$value</span></button>\n";
}

Change it to like this.

function navi_button($name, $value, $enabled=true, $icon = false) {
    global $path_to_root;
      return "<button ". ($enabled ? '':'disabled')
          ." class=\"navibutton \" type=\"submit\""
        ." name=\"$name\"  id=\"$name\" value=\"$value\">"
          .($icon ? set_icon($icon):'')
        ."<span>$value</span></button>\n";
}

41

(7 replies, posted in Installation)

Seems like you are in right file change, and than try from browser it will display errors.  dont forget to click Save button to make this change effect in browser.

and let me know

42

(7 replies, posted in Installation)

Don't panic. It might be php updated or you might installed any extension or theme which crashed your FA.   Enable debugging mode

And open the same URL. You might see the errors. Copy the error information here.  And we will help you out with reason

43

(5 replies, posted in Installation)

Usually the session data are stored in a temporary php storage for users to access it.

This is maximum 1440 seconds can be stored.  After that it will be cleared. If you need to keep the session alive you need to have separate session manager to handle it..

We have     custom session manager 

Which will help you to keep the session active for days and months based on your preference you can keep it alive.

ST_CHEQUE is  not a core constant. Looks like it's a customized version.  And you have not mention the file and function to understand it.

45

(26 replies, posted in Modules/Add-on's)

@joe and @itronics

Whether all of our extensions updated with path variable. Needs your immediate attention to update them on our repository.

46

(11 replies, posted in Modules/Add-on's)

Time sheet was disabled by mistake in our CRM, I just enabled it again. 

Estimating Task to view the timesheet tab and there you can input the timesheet as well.

There is separate inquiry for timesheet Time Sheet From Kvcodes CRM .

And this will be billed when the task marked as completed.  and ofcourse the project progress should be 100 percent and status changed to completed. than only you can invoice this project and its associated tasks with its timesheet

If you need our immediate replies, Kindly chat from our Demo page itself, we will help you on the same time.

47

(26 replies, posted in Modules/Add-on's)

Your PHP is 8.2. Downgrade to php 8.0 and try it.

48

(8 replies, posted in Installation)

Hi welcome to FA  community.

If you have some knowledge of these. You can do well.  And we have some active developers to support you as well for some clarifications.

49

(3 replies, posted in Modules/Add-on's)

To be with react, i am not sure. But with node you can try express and cors together.

const express = require('express');
const cors = require('cors');

const app = express();

// Allow requests from all origins (for development purposes)
app.use(cors());

I meant I am trying to make a rest api with slim 4 and instead of username and password for every call. Trying to do with access token based authentication.

First time they need to login with email and password and response will provide  a token. And based on that token further api calls so operate.

50

(13 replies, posted in Modules/Add-on's)

I am not sure what you meant.  But if you are thinking to use the same number on both your mobile and cloud api.  WhatsApp doesnt allow like that. Either you can use that number on cloud api or in your mobile whatsapp..

hope i explained clearly now.