I'm using FA 2.3.24 and when I go to the Banking and General Ledger tab I get the following error message:

DATABASE ERROR :
At file /var/www/html/accounting/modules/dashboard/widgets/dailybankbalances.php:67:

error code : 1146
error message : Table 'finance.0_bank_trans' doesn't exist
sql that failed was : SELECT bank_act, bank_account_name, trans_date, amount FROM ( SELECT bank_act, bank_account_name, null trans_date, SUM(amount) amount FROM fl_bank_trans bt INNER JOIN fl_bank_accounts ba ON bt.bank_act = ba.id WHERE bank_act = 2 AND trans_date < now() - INTERVAL 30 DAY GROUP BY bank_act, bank_account_name UNION ALL SELECT bank_act, bank_account_name, trans_date, SUM(amount) amount FROM 0_bank_trans bt INNER JOIN fl_bank_accounts ba ON bt.bank_act = ba.id WHERE bank_act = 2 AND trans_date < now() + INTERVAL 30 DAY AND trans_date > now() - INTERVAL 30 DAY GROUP BY bank_act, trans_date, bank_account_name ) trans ORDER BY bank_account_name, trans_date


mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in file: /var/www/html/accounting/includes/db/connect_db.inc at line 92

How do I fix this?

Thanks!

Regards,

Chris

I'm in the middle of moving servers so "The Plan" was to do the move then upgrade FA.  For now, I'll try replacing the 1 file as a stop-gap.

EDIT:  Replacing the file (for now) worked...  error message gone!  big_smile

Thanks for the help!

Chris

Hey, apmuthu:

No, my line 59 in includes/ui/ui_controls.inc is not the same as the latest commit.  Here it is:

        echo implode('', $hidden_fields);

If I just replace my ui_controls.inc with the one from the latest commit would that fix it, or make things worse?

Thanks!

Regards,

Chris

Has a solution to this problem been found?  Today I moved FA 2.3.24 from a hosted site to a VPS and now I'm getting this error alert at the top of the web page when I log in:

implode(): Invalid arguments passed in file: /var/www/html/accounting/includes/ui/ui_controls.inc at line 59

Printing PDF's does seem to work, though.

Thanks for any help/advice offered!

Regards,

Chris

Maybe you should post your request in the "Jobs Wanted/Offered" forum?  You're more likely to get a response there.  As well, if you have a budget (or some idea of what you'd like to spend) that might entice developers to respond.

Hope that helps...

Regards,

Chris

6

(8 replies, posted in Installation)

Okay, that explains it nicely.  Thanks!

Chris

7

(8 replies, posted in Installation)

Okay, apmuthu, you have much more knowledge about the workings of FA than I do so I'll bow to your superior knowledge.  smile  But it still seems to me that the ISP's DNS should properly resolve the URL to the correct IP address even though it's changed.  Guess I'm wrong, though....  not the first time!  LOL!  smile

Chris

8

(8 replies, posted in Installation)

If you're in the middle of a transaction and haven't posted it, and for any reason you lose your connection to FA such that you have to start over, then yes the current data for that transaction will be lost.  One thing you can try, though, is to use the "back" button in your browser to get back to the page you were one and try refreshing it.  That may re-insert your data into the fields from your browser's cache.  It may not, too, though, so there's no guarantees.

Having said that, I'm unclear why FA running on a server using a dynamic IP would drop the connection?  The ISP's DNS server should always properly resolve the URL to the proper IP address, even if it changes.  Sounds to me like there's an issue with your ISP's DNS server.  What specific error message are you getting when the connection drops?  Are you sure it's a DNS problem and not a web server (apache or whatever) problem?

Hope that helps...

Regards,

Chris

I'm not sure I fully understand how you have FA currently set-up, but the bottom line is that each physical bank account needs to have a separate GL account.  This is true no matter what kind of account it is - chequing, savings, whatever.  If you're posting transactions from multiple bank accounts into one GL account, you're creating a huge mess.

Hope that helps...

Regards,

Chris

If by "customization" you mean you have edited numerous PHP files, then deleting/recreating the database shouldn't effect that in any way, at least as far as I know.  But, if you have customized the database structure (added tables, fields, etc.), then you've got major problems in deleting/recreating the database.

Awhile back, I tried to modify an SQL script I found somewhere in the forums for "wiping clean" the database for an earlier version of FA.  That attempt failed miserably and totally trashed the database so that I had to start from scratch with a clean install.  Because of that personal experience, I would highly recommend that you do not try to "clean" the database any other way other than using FA itself to make any changes to the database contents.

Hope that's helpful...

Regards,

Chris

No, you shouldn't have to make any changes to the existing bank accounts you have already set-up, although you may want to edit the account name field so that you know which account is which.  So, for instance, let's say you already have this structure:

Code   Type              Account Name
------------------------------------------------------------
1061   Cash            Cash Account
1071   Chequing     Chequing Account
1081   Savings        Savings Account

If you want, you can change it to this:

Code   Type              Title
------------------------------------------------------------
1061   Cash            Cash Account "A"
1062   Cash            Cash Account "B"
1071   Chequing     Chequing Account "A"
1072   Chequing     Chequing Account "B"
1081   Savings        Savings Account "A"
1082   Savings        Savings Account "B"

I hope that helps...

Regards,

Chris

12

(13 replies, posted in Items and Inventory)

No, it means you have to escape commas in the description field.  that means you add "\" before each comma that's part of the "description" text so that the import module doesn't confuse those commas with field separators.  You can do this in any spreadsheet program and then save the file to cvs format for import into FA.  It's a bit of work, but using find and replace (find "," and replace with "\,") should help.

Hope that's helpful...

Regards,

Chris

Apparently I misspoke?  I don't use the sales quotation function, but thought I had read that you couldn't convert a sales quotation to a sales order without first installing the textcart extension.  I guess I should've just kept quiet.  (BLUSH!)

Sorry!

Chris

14

(3 replies, posted in Setup)

I'm not 100% sure, but I think that module imports items, not sales transactions.  Can someone confirm whether this is correct?  However, if that's the case, that module could be used as the basis for developing a new module that would import sales transactions.  Not sure how much time/effort that would take, though.

Hope that's helpful...

Regards,

Chris

Hmmm....  now I'm stumped.  I was hoping for some sort of error message to point you to the problem.  Maybe one of the developers will have an idea how to proceed?

Sorry!

Regards,

Chris

Errors will appear at the top of your screen, but also check tmp/errors.log and see if that provides any useful info.

Regards,

Chris

That's not much information to go on, so please edit lines 32-36 of config.php so that it as follows:

        $debug                  = 1;    // show sql on database errors

        $show_sql               = 0;    // show all sql queries in page footer 
        $go_debug               = 2;    // set to 1 for basic debugging, or 2 t
        $pdf_debug              = 0;    // display pdf source instead reports f

Then, post back here any error messages you get.

Regards,

Chris

Yes, I think that's what he means.

There's another logical reason for having separate GL accounts for each bank account...  it would be extremely difficult to reconcile bank statements with the GL if accounts are intermixed in one GL account.  Having separate GL accounts would be much easier to manage/reconcile in the long run.

Hope that's helpful...

Regards,

Chris

I'm not sure what the difference is between your "RFQ" and the "Sales Quotation" which already exists in FA?  Or, are you talking about an "RFQ" for the purchasing module?

Also, FA currently does not easily convert a "Sales Quotation" into a "Sales Order" although you can use cut-and-paste if you have installed the textcart extension.  Some have suggested that this functionality be added to a future version of FA, but I don't think it's going to happen right away.

Hope that's helpful.

Regards,

Chris

@AlastairR:  While I understand your frustration (it bugs the heck out of me too, sometimes!), I also understand the locig of not allowing a cash account to go overdrawn.  Cash is cash!  While you're pocket/wallet can be empty, it can't have a negative amount of "cash" in it!  It's just not physically possible!

As Joe said, this only applies to accounts where the type has been set to "Cash" so setting it to anything else will solve the can't-be-negative problem.

Regards,

Chris

21

(44 replies, posted in Announcements)

Okay, I have manually updated the database tables and reinstalled both the extension and theme.  All went well, although it took me awhile to remember I had to go into "Setup -> Access Setup" and set the proper rights for the dashboard and reminders before I could access them in the Setup module.  (DOH!)

Anyway, all is well now.  I'm not terribly excited about the color scheme (blues/greys don't thrill me), but the various widgets are handy, the layout is nice, and I particularly like the accordion menus on the left.  So, overall, I like this extension/theme and will probably use it although sometime when I have time I'm going to go into the theme's default css and muck with the color scheme.

Finally, a HUGE thanks to Alastair for helping me get this going!  I sincerely apologize for my somewhat-snarky remarks earlier as I now see they were unwarranted.  I do hope the install problems get sorted out, as this is a pretty nice extension.

Regards,

Chris

22

(44 replies, posted in Announcements)

Okay, I uninstalled both the theme and the extension and then upgraded to FA 2.3.15.  I then went back and installed the extension and theme.  When I tried to activate the extension, I got this error message:

file(../modules/Dashboard/sql/update.sql): failed to open stream: No such file or directory in file: /var/www/accounting/admin/db/maintenance_db.inc at line 293Invalid argument supplied for foreach() in file: /var/www/accounting/admin/db/maintenance_db.inc at line 298

When I go to the Setup page, I get these error messages:

Debug mode database warning:
error code : 1146
error message : Table 'accounting.0_dashboard_widgets' doesn't exist
sql that failed was : SELECT DISTINCT column_id FROM 0_dashboard_widgets WHERE user_id ='1' AND app='system' ORDER BY column_id


mysql_fetch_array() expects parameter 1 to be resource, boolean given in file: /var/www/accounting/includes/db/connect_db.inc at line 89

So, obviously, there's still a problem.  No, I haven't used phpMyadmin to manually update the database, but will do that next.  I'm just posting this here to notify the author that this extension does not install automatically even if you're using FA 2.3.15 so something appears to need to be fixed.

No time do do the manual database update right now, so I'll do it later and report back about whether or not that works.

Regards,

Chris

23

(44 replies, posted in Announcements)

Okay, in fairness to AlastairR, it does say "version 2.3.15-1" in the version field for the extension and I probably should have noticed that.  However, it's still "a good thing" to explicitly state that kind of requirements/dependency thing in the announcement as some folks (like me!) don't always read the fine print.

Regards,

Chris

24

(44 replies, posted in Announcements)

Yes, I'm running FA 2.3.14 so thanks for that suggestion so I'll upgrade and see if that helps.  Btw, it would've been nice if "requires FA 3.1.15" had been included in the original post.  Just saying!

Regards,

Chris

25

(5 replies, posted in Setup)

Since what I suggested causes printer to happen using the browser's printing functionality, I have no idea why it wouldn't work for you nor can I figure out why opening another tab would fix it.  Sorry!  Maybe one of the developers can help?

Good luck in your quest for a solution!

Regards,

Chris