3 Replies Latest reply on Jul 29, 2011 9:31 PM by genotype

    Error "Generate Sample PHP Service"

    jeffcg2 Level 1

      Anyone getting this error?

       

      Flash Builder 4 - Windows 7 - Zend Server Community Edition

       

      Warning: parse_ini_file() [function.parse-ini-file]: It is not safe to  rely on the system's timezone settings. You are *required* to use the  date.timezone setting or the date_default_timezone_set() function. In case you  used any of those methods and you are still getting this warning, you most  likely misspelled the timezone identifier. We selected 'America/Chicago' for  '-5.0/DST' instead in C:\Program Files  (x86)\Zend\Apache2\htdocs\phpprog-debug\gateway.php on line  12

       

      Warning: syntax error, unexpected '(' in C:\Program  Files (x86)\Zend\Apache2\htdocs\phpprog-debug/amf_config.ini on line 5 in  C:\Program Files (x86)\Zend\Apache2\htdocs\phpprog-debug\gateway.php on  line 12

       

      Warning: Unknown: It is not safe to rely on the  system's timezone settings. You are *required* to use the date.timezone setting  or the date_default_timezone_set() function. In case you used any of those  methods and you are still getting this warning, you most likely misspelled the  timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in  Unknown on line 0

       

      Fatal error: Uncaught exception  'Zend_Config_Exception' with message 'syntax error, unexpected '(' in C:\Program  Files (x86)\Zend\Apache2\htdocs\phpprog-debug/amf_config.ini on line 5' in  C:\Program Files  (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Config\Ini.php:181Stack  trace:#0 C:\Program Files  (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Config\Ini.php(201):  Zend_Config_Ini->_parseIniFile('C:\Program File...')#1 C:\Program Files  (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Config\Ini.php(125):  Zend_Config_Ini->_loadIniFile('C:\Program File...')#2 C:\Program Files  (x86)\Zend\Apache2\htdocs\phpprog-debug\gateway.php(31):  Zend_Config_Ini->__construct('C:\Program File...', 'zendamf')#3 {main} thrown  in C:\Program Files  (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Config\Ini.php on  line 181

        • 1. Re: Error "Generate Sample PHP Service"
          jeffcg2 Level 1

          There is not much in this file but is seems that the parser is complaining about the parentheses.

           

          amf_config file

          _________________________________________________________

          [zend]
          ;set the absolute location path of webroot directory, example:
          ;Windows: C:\apache\www
          ;MAC/UNIX: /user/apache/www
          webroot =C:/Program Files (x86)/Zend/Apache2/htdocs

           

          ;set the absolute location path of zend installation directory, example:
          ;Windows: C:\apache\PHPFrameworks\ZendFramework\library
          ;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework/library
          ;zend_path =

           

          [zendamf]
          amf.production = false

          _____________________________________________________________

          • 2. Re: Error "Generate Sample PHP Service"
            Radhakrishna Bhat Level 3

            Thanks. There seems to be an issue with parsing. I have logged a bug http://bugs.adobe.com/jira/browse/FB-26513 for the same.

             

            -Radhakrishna

            • 3. Re: Error "Generate Sample PHP Service"
              genotype

              Sorry for the threadomancy but I can confirm that the cause of this error is the parens in the "C:\Program Files (x86)" part of the path. Well, some part of that path, anyway. I uninstalled Zend CE Server from the location it wanted to install in, which is the non-64 bit program files directory (in Windows 7) and instead reinstalled to "C:\Zend." It's worked like a charm since then.