Page 1 of 1

Bug?

Posted: 2016-07-20 20:26
by ronwill
Have just uploaded a previously compiled app using latest version and when clicking sign-up button I get this error in header area:

Warning: array_fill(): Number of elements must be positive in /homepages/5/d1066xxxxxxx/htdocs/xxxxxxx_com/appgini/Enquiryform/incCommon.php on line 1063

Is it something I've done! How do I fix, resolve it?

I have had a few problems with new group menu's on another app (probably caused by a PC crash whilst working on it) whereby generating the app from AppGini does not change any of the group names and prevents renaming them while working in the axp file. I resolved this by editing the axp file and removing the group names, leaving only 'none' re-starting and renaming my groups on that app - now seems to be all ok again! Just mentioning it in case anyone else has similar problem.

Thanks to anyone in advance if they can guide me to resolving above warning issue,
Cheers,
Ron

Re: Bug?

Posted: 2016-07-20 21:59
by a.gneady
Hello Ron,

If you're still experiencing this issue, please send me the AXP project file through the support form at https://bigprof.com/appgini/support-request

Re: Bug?

Posted: 2016-07-20 23:59
by ronwill
Thanks, I've just submitted the AXP file to support.

Cheers,
Ron

Re: Bug?

Posted: 2016-07-21 01:30
by ronwill
An additional note to submitted report in case it helps!

1. I do not get the error message locally (localhost) I only get the error when running on the web database server (1&1 Database = MySQL5.5 - mysqli).
2. I double checked all files, re published AXP files, compared groups/user/admin settings/config (local/server) made sure all files are the same (except config database server info/data) All identical.

Let me know if more info is req'd,

Thanks... Loving the App (even with the above LOL)

Re: Bug?

Posted: 2016-07-22 18:54
by ronwill
Thanks to the support team for resolving the above - very pleased with swift and positive response, great customer service, yet another good reason to promote your software at every opportunity.

Cheers,
Ron

Re: Bug?

Posted: 2016-08-09 12:15
by Noha Eshra
:D
Glad we could help!

Thanks for your feedback :)

Re: Bug?

Posted: 2016-08-09 13:02
by grimblefritz
Could you share some detail about what the problem/solution turned out to be?

Re: Bug?

Posted: 2016-08-18 15:47
by a.gneady
The solution is to find this line in incCommon.php:

Code: Select all

if(count($table_group_name) == 1 && $table_group_name[0] == 'None') $table_group_name[0] = $Translation['select a table'];
and change it to:

Code: Select all

if((count($table_group_name) == 1 && $table_group_name[0] == 'None') || count($table_group_name) < 1) $table_group_name[0] = $Translation['select a table'];
The fix will be applied in the next release.

Re: Bug?

Posted: 2016-08-23 03:52
by buck1942
Thank you for posting the fix...

I had the same problem using 5.51 with WAMP and on my website.

I did not have the problem with 5.50.

I am now running 5.51 and all seems to be well...

Buck

Re: Bug?

Posted: 2017-02-04 07:51
by labib saleh
I'm using version 5.51 and it's generating the code wrongly without the extra piece (|| count($table_group_name) < 1), I have to manually fix it everytime I generate the code :(