Menu

The first argument should be an array

2006-09-28
2013-04-17
  • Kenneth Berntsen

    Every time I try to generate all the CRUD in the Advanced Users section I get the following error/warning.

    Warning: array_keys() [function.array-keys]: The first argument should be an array in C:\xampp\htdocs\genie\app\generators\dbEngine\table.class.php on line 123

    I'm running PHP 5.1.4 under Windows XP SP2.
    Its from the XAMPP for Windows Version 1.5.3a
    distro.

    It seems like not all of the code has been generated properly when this happens.  I can go to the individual tables and gen the code/CRUD one file at a time without any problems.

    Any ideas what is going on?

     
    • repcode128

      repcode128 - 2006-09-29

      In C:\xampp\htdocs\genie\app\settings\applicationConstants.inc.php
      at the very bottom of the page do you have
      define("GENERATE_FOR_PHP5",true);
      set to true??

       
    • Kenneth Berntsen

      Just did that, but I still get the same error listed above.  Usually multiple times.

       
    • repcode128

      repcode128 - 2006-10-04

      codegenie is looking for what fields to process from your table but not seeing them. What database are you using? have you changed any code?

       
      • Kenneth Berntsen

        Here's my configuration, running on windows xp

        Apache 2.2.3
        MySQL 5.0.24a
        PHP 5.1.6 & PHP 4.4.4

         
        • Kenneth Berntsen

          An no I haven't made any code changes.  I should add some times it will work and other times it does do as good.

           
    • repcode128

      repcode128 - 2006-10-05

      In your php.ini file try changing error_reporting to:
      error_reporting  = E_ALL & E_STRICT;
      then restart apache.
      works for php5 only

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.