Menu

Undefined variable: db_func_loaded

Help 2.02
Anonymous
2003-05-22
2003-06-03
  • Anonymous

    Anonymous - 2003-05-22

    I get the following message:

    Undefined variable: db_func_loaded 

    when i try to load my admin page.

    I'm new to PHP but i suspect there is something wrong with my PHP setup. Anyone have any recommendations?

     
    • Andreas Kansok

      Andreas Kansok - 2003-05-23

      If all other works right, set in php.ini
      error_reporting = E_ALL & ~E_NOTICE

      This message appears as notice, if a variable is used, which isnt defined before.
      Default setting in php.ini is E_ALL. You find more details to config your PHP in this configuration file (or of course in docs ;-)

      If you are in php.ini check also register_globals. I'm not sure that all functions of phPay work with setting OFF; you can test it or set to ON.

      Greetings,
      Andreas.

       
    • Anonymous

      Anonymous - 2003-05-28

      I already have :
      error_reporting = E_ALL & ~E_NOTICE
      and
      register_globals = on

      Any more ideas?

       
      • Andreas Kansok

        Andreas Kansok - 2003-05-28

        Do you reloaded php.ini?

        Is something to read about message 'Undefined variable ...' in PHP docs? Perhaps there is another option for error_reporting?

        What a system do you use?

        Is this the only message of this type? There are lot's of other undefined used variables ...

        Greetings,
        Andreas.

         
        • Anonymous

          Anonymous - 2003-06-03

          What do you mean by "reload php.ini"? I've restarted the IIS services.

          Im running Windows 2000 Server with IIS and PHP 4.1.X something. Runing MySQL 4.0.13.

          Im getting the following errors on the admin page:

          Warning: mysql_connect() [function.mysql-connect]: Access denied for user: 'sa@192.168.1.120' (Using password: YES) in c:\inetpub\wwwroot\phpay\admin\db_func.inc.php on line 11

          Warning: mysql_connect() [function.mysql-connect]: Access denied for user: 'sa@192.168.1.120' (Using password: YES) in c:\inetpub\wwwroot\phpay\admin\db_func.inc.php on line 11

          Warning: main(../config.inc.php) [function.main]: failed to create stream: No such file or directory in c:\inetpub\wwwroot\phpay\admin\admain.php on line 100

          Warning: main() [function.main]: Failed opening '../config.inc.php' for inclusion (include_path='.;c:\php\includes;c:\php\pear') in c:\inetpub\wwwroot\phpay\admin\admain.php on line 100
          Derzeit verwendete Parameter (config.inc.php):

          I don't have a folder called C:\Php\includes. ANy more ideas?

           
    • Andreas Kansok

      Andreas Kansok - 2003-06-03

      First check access rights to MySQL. First problem you describe, is not a problem of phPay, then of MySQL (even if you have the right access informations in admin/config_db.inc.php).
      Per default no access from other IP addresses is allowed as from 127.0.0.1 (localhost), try this in config_db* instead of 192.168.1.120

      Second problem is, that you don't have a config.inc.php in shop directory. Put in the one from phPay package (remove 'include ("config_system ...'  and try again.

      Greetings,
      Andreas.

       

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.