1 (edited by littlez 08/12/2011 02:31:12 pm)

Topic: 2 Problems

First my date and time is wrong it is showing the time 7 hours ahead of my actual server time.
Second problem When I click  Install/Update Languages, extensions or themes it just says "Release file in repository is invalid, or public key is outdated."
Debug On I get this for the second problem.

ksort() expects parameter 1 to be array, null given in file: /srv/www/htdocs/fro/includes/packages.inc at line 509
Invalid argument supplied for foreach() in file: /srv/www/htdocs/fro/admin/inst_module.php at line 111

FA 2.3.6
Suse 11.4
Apache 2.2.17
MySQL 5.1.53
PHP 5.3.5

Any help would be appreciated.
Steve

Re: 2 Problems

Anyone have any clues?

Re: 2 Problems

Timezone for your server can be set in config.php file (look for 'date.timezone').

Check Extensions System section in System Diagnostics page under Setup tab.
Janusz

Re: 2 Problems

Thanks for the reply.
i figured out the timezone problem.

The System Diagnostics page under Setup tab is good,
Reads:
Extensions system    
Required    
                                   ../installed_extensions.php
                                   ../company/0/*/installed_extensions.php
                                   ../modules                                                                                     Ok
                                   ../modules/_cache
                                   ../themes
                                    ../sql
                                     OpenSSL PHP extension    

Any other ideas?
Thanks

Steve

Re: 2 Problems

We can try to find the source of problem, but I need your help in step by step debugging.
Please check  whether you have  modules/_cache/Release.gz file uploaded. If you have one - delete it, and try again and report the effects.

Janusz

Re: 2 Problems

Deleted Release.gz same problems.
Steve

Re: 2 Problems

Ok. Now you can look into modules/_cache directory. If you see Release.gz file recreated, we are sure the main repository index file is downloaded as expected.

I guess this is some php/openssl/system version related problem , so let's continue debugging.
Please copy/paste following code in line 291 of includes/packages.inc (just before the line containing openssl_verify() function call):

_vd(base64_encode($sig)); _vd($cert);

and report me the result displayed at the top of Install/Activate Extensions page.
Janusz

Re: 2 Problems

Here it is:

JetwviN8hEDCJaJezrt9DTyBEVjzeu7drGqOHkF3oUOZhruTdKLXxRngb1fjzuYNxTCbB7pnMyYR24aGrZ1mrRc7nI6EGmwW7bpt+87tvF8lbug3YdVZ6tvwWpBsfIM5ONya/XJ0kwoF3+4zuYPVKFq4z7x6PTCnhinDIRH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kww
oW+J9NyESy8pIsZG/FH0FgoFYshrRRGaK0pImNOSj5HUThfBJLJpLbkm2J1aHag=
-----END CERTIFICATE-----

Release file in repository is invalid, or public key is outdated.ksort() expects parameter 1 to be array, null given in file: /srv/www/htdocs/fro/includes/packages.inc at line 509Invalid argument supplied for foreach() in file: /srv/www/htdocs/fro/admin/inst_module.php at line 111



Thanks for the Help

Steve

Re: 2 Problems

Ok. Seems you are using Windowz based installation and there is some bug in fread() implementation in this version.

To ommit the problem please remove previous changes and try to fix line 288 of includes/packages.inc to:

     $sig = substr(url_get_contents(REPO_URL.'/Release.sig'), 0, 128);

Janusz

Re: 2 Problems

I downloaded frontaccounting-2.3.6.tgz.
I updated line 288 and I still get:

Release file in repository is invalid, or public key is outdated.
ksort() expects parameter 1 to be array, null given in file: /srv/www/htdocs/fro/includes/packages.inc at line 509
Invalid argument supplied for foreach() in file: /srv/www/htdocs/fro/admin/inst_module.php at line 111

Steve

Re: 2 Problems

Strange, Joe has reported all works right on his (similar) setup under Win.

Could you apply both the changes described in previous posts and check the one-line response? This is repository Release.sig file displayed in  human readable form, and (when properly retrieved) it should end with 'DIRHKpUc=' .
Janusz

12 (edited by littlez 08/23/2011 03:36:08 am)

Re: 2 Problems

I am running Suse 11.4 as described in my first post,

I applied both changes, I do see (DIRHKpUc=) in 2 places. But still getting errors.

JetwviN8hEDCJaJezrt9DTyBEVjzeu7drGqOHkF3oUOZhruTdKLXxRngb1fjzuYNxTCbB7pnMyYR24aGrZ1mrRc7nI6EGmwW7bpt+87tvF8lbug3YdVZ

6tvwWpBsfIM5ONya/XJ0kwoF3+4zuYPVKFq4z7x6PTCnhinDIRHKpUc=

-----BEGIN CERTIFICATE-----
MIICyzCCAjSgAwIBAgIJAPmoLn2B45+EMA0GCSqGSIb3DQEBBQUAME4xCzAJBgNV
BAYTAlVTMREwDwYDVQQIEwhEZWxhd2FyZTEOMAwGA1UEBxMFRG92ZXIxHDAaBgNV
BAMTE2Zyb250YWNjb3VudGluZy5u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0GCSqGSIb3DQEBBQUAME4xCzAJBgNV
BAYTAlVTMREwDwYDVQQIEwhEZWxhd2FyZTEOMAwGA1UEBxMFRG92ZXIxHDAaBgNV
BAMTE2Zyb250YWNjb3VudGluZy5uZXQwHhcNMDkxMTE2MTIxNjEwWhcNMTAxMTE2
MTIxNjEwWjBOMQswCQYDVQQGEwJVUzERMA8GA1UECBMIRGVsYXdhcmUxDjAMBgNV
BAcTBURvdmVyMRwwGgYDVQQDExNmcm9udGFjY291bnRpbmcubmV0MIGfMA0GCSqG
SIb3DQEBAQUAA4GNADCBiQKBgQDm9BbI0KCUrzOQPtZkNpI0mBvnSIjgIAIZXPgB
UQYqRpNihfrA3eIkpH87X6/zPEmoZXIDrzlXFYzLRvlMwHOnPbVeR0Z3HTT4AYYU
+lcL0l4vIJfaNbRjGXSJ8w/FDc4XOMBU5ut5+zPJmwrqmJsyMcIkN0JX8/5g4+lk
xTnpIQIDAQABo4GwMIGtMB0GA1UdDgQWBBRzT6vxvlhlrXDXTT/WEBZA7k8xMjB+
BgNVHSMEdzB1gBRzT6vxvlhlrXDXTT/WEBZA7k8xMqFSpFAwTjELMAkGA1UEBhMC
VVMxETAPBgNVBAgTCERlbGF3YXJlMQ4wDAYDVQQHEwVEb3ZlcjEcMBoGA1UEAxMT
ZnJvbnRhY2NvdW50aW5nLm5ldIIJAPmoLn2B45+EMAwGA1UdEwQFMAMBAf8wDQYJ
KoZIhvcNAQEFBQADgYEA4CJMjO0lR5Vsz3N64MBSMpZKw2XgmZDFgMOORiJ9btJA
EAnc5mYYsCmZFlXVp1XOj3hcoggrMPmgyLLbagAz5NW2wgEg4xzyE9PhWDJptkww
oW+J9NyESy8pIsZG/FH0FgoFYshrRRGaK0pImNOSj5HUThfBJLJpLbkm2J1aHag=
-----END CERTIFICATE-----

Release file in repository is invalid, or public key is outdated.ksort() expects parameter 1 to be array, null given in file: /srv/www/htdocs/fro/includes/packages.inc at line 509
Invalid argument supplied for foreach() in file: /srv/www/htdocs/fro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R5Vsz3N64MBSMpZKw2XgmZDFgMOORiJ9btJA
EAnc5mYYsCmZFlXVp1XOj3hcoggrMPmgyLLbagAz5NW2wgEg4xzyE9PhWDJptkww
oW+J9NyESy8pIsZG/FH0FgoFYshrRRGaK0pImNOSj5HUThfBJLJpLbkm2J1aHag=
-----END CERTIFICATE-----


Extension     Modules provided     Options provided     Installed     Available    

Any help would be appreciated.

Marcelo

Re: 2 Problems

I went back and redid the line 291 from a original file.( I noticed when I pasted it was cutting off some stuff)
Here is the output with just Line 291 modified.

JetwviN8hEDCJaJezrt9DTyBEVjzeu7drGqOHkF3oUOZhruTdKLXxRngb1fjzuYNxTCbB7pnMyYR24aGrZ1mrRc7nI6EGmwW7bpt+87tvF8lbug3YdVZ

6tvwWpBsfIM5ONya/XJ0kwoF3+4zuYPVKFq4z7x6PTCnhinDIRHKpUcN

-----BEGIN CERTIFICATE-----
MIICyzCCAjSgAwIBAgIJAPmoLn2B45+EMA0GCSqGSIb3DQEBBQUAME4xCzAJBgNV
BAYTAlVTMREwDwYDVQQIEwhEZWxhd2FyZTEOMAwGA1UEBxMFRG92ZXIxHDAaBgNV
BAMTE2Zyb250YWNjb3VudGluZy5uZXQwHhcNMDkxMTE2MTIxNjEwWhcNMTAxMTE2
MTIxNjEwWjBOMQswCQYDVQQGEwJVUzERMA8GA1UECBMIRGVsYXdhcmUxDjAMBgNV
BAcTBURvdmVyMRwwGgYDVQQDExNmcm9udGFjY291bnRpbmcubmV0MIGfMA0GCSqG
SIb3DQEBAQUAA4GNADCBiQKBgQDm9BbI0KCUrzOQPtZkNpI0mBvnSIjgIAIZXPgB
UQYqRpNihfrA3eIkpH87X6/zPEmoZXIDrzlXFYzLRvlMwHOnPbVeR0Z3HTT4AYYU
+lcL0l4vIJfaNbRjGXSJ8w/FDc4XOMBU5ut5+zPJmwrqmJsyMcIkN0JX8/5g4+lk
xTnpIQIDAQABo4GwMIGtMB0GA1UdDgQWBBRzT6vxvlhlrXDXTT/WEBZA7k8xMjB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JfaNbRjGXSJ8w/FDc4XOMBU5ut5+zPJmwrqmJsyMcIkN0JX8/5g4+lk
xTnpIQIDAQABo4GwMIGtMB0GA1UdDgQWBBRzT6vxvlhlrXDXTT/WEBZA7k8xMjB+
BgNVHSMEdzB1gBRzT6vxvlhlrXDXTT/WEBZA7k8xMqFSpFAwTjELMAkGA1UEBhMC
VVMxETAPBgNVBAgTCERlbGF3YXJlMQ4wDAYDVQQHEwVEb3ZlcjEcMBoGA1UEAxMT
ZnJvbnRhY2NvdW50aW5nLm5ldIIJAPmoLn2B45+EMAwGA1UdEwQFMAMBAf8wDQYJ
KoZIhvcNAQEFBQADgYEA4CJMjO0lR5Vsz3N64MBSMpZKw2XgmZDFgMOORiJ9btJA
EAnc5mYYsCmZFlXVp1XOj3hcoggrMPmgyLLbagAz5NW2wgEg4xzyE9PhWDJptkww
oW+J9NyESy8pIsZG/FH0FgoFYshrRRGaK0pImNOSj5HUThfBJLJpLbkm2J1aHag=
-----END CERTIFICATE-----

Release file in repository is invalid, or public key is outdated.
ksort() expects parameter 1 to be array, null given in file: /srv/www/htdocs/fro/includes/packages.inc at line 509
Invalid argument supplied for foreach() in file: /srv/www/htdocs/fro/admin/inst_module.php at line 111

Re: 2 Problems

@marfal:
Seems both the signature and certificate seems to be correct..
@littlez:
For some reason the signature read from the repo is broken. It contains additional '\r' char at the end, which is the reason why I thought this is some Win server related issue. In your case aplying the patch described in post #9 fixes at least the problem of broken signature, so both strings cited in post #2 are correct.

So, if both signature and certificate are correct we have to check two additional elements: the signed file and openssl version.
Please add following diagnostic code in line 288 of original packages.inc:

        $sig = substr($sig, 0, 128);
        _vd(md5($sig));
        _vd(md5($cert));
        _vd(md5($data));
        _vd(OPENSSL_VERSION_TEXT);
        _vd(OPENSSL_VERSION_NUMBER);

The correct display looks like this (first 3 strings have to be exactly as shown):

722d761e556295b9dbd919041a65e5ab
4ae05590cbbad0316d1a2f2914aff843
748d92544c591f88320270e300da01af
OpenSSL 0.9.8o 01 Jun 2010
9470207

Hopefuly after this test we will end with some conclusion.
Janusz

Re: 2 Problems

I am assuming you wanted me paste over line 288.
Output:

Undefined variable: sig in file: /srv/www/htdocs/fro/includes/packages.inc at line 288
Undefined variable: cert in file: /srv/www/htdocs/fro/includes/packages.inc at line 290
Undefined variable: data in file: /srv/www/htdocs/fro/includes/packages.inc at line 291
Release file in repository is invalid, or public key is outdated.ksort() expects parameter 1 to be array, null given in file: /srv/www/htdocs/fro/includes/packages.inc at line 514
Invalid argument supplied for foreach() in file: /srv/www/htdocs/fro/admin/inst_module.php at line 111

Re: 2 Problems

I just added the code under line 288.
Output:

722d761e556295b9dbd919041a65e5ab

Undefined variable: cert in file: /srv/www/htdocs/fro/includes/packages.inc at line 291
Undefined variable: data in file: /srv/www/htdocs/fro/includes/packages.inc at line 292
Release file in repository is invalid, or public key is outdated.
ksort() expects parameter 1 to be array, null given in file: /srv/www/htdocs/fro/includes/packages.inc at line 515
Invalid argument supplied for foreach() in file: /srv/www/htdocs/fro/admin/inst_module.php at line 111

Re: 2 Problems

Oh, my bad. The 5 lines should be inserted in line 292 (just above openssl_verify call).
Janusz

Re: 2 Problems

I inserted it in line 292(after)  ---  if (!openssl_verify($data, $sig, $cert)) { 
Output:

722d761e556295b9dbd919041a65e5ab

4ae05590cbbad0316d1a2f2914aff843

3320ef261675a6172645e64b7cf3feae

OpenSSL 1.0.0c 2 Dec 2010

268435519

722d761e556295b9dbd919041a65e5ab

4ae05590cbbad0316d1a2f2914aff843

3320ef261675a6172645e64b7cf3feae

OpenSSL 1.0.0c 2 Dec 2010

268435519

Release file in repository is invalid, or public key is outdated.
ksort() expects parameter 1 to be array, null given in file: /srv/www/htdocs/fro/includes/packages.inc at line 515
Invalid argument supplied for foreach() in file: /srv/www/htdocs/fro/admin/inst_module.php at line 111

Re: 2 Problems

Ok, so we know the problem appears also for Release.gz file download.
In  mean time I have made small fix on our extension repository server, according to advice found in php manual. Please check whether the problem is solved or not. If the extension system still does not work for you, with your approval I will contact you directly via email to continue debugging.

Janusz

Re: 2 Problems

Problem solved. Extensions, themes, and languages all worked.

Thanks Janusz

Steve

Re: 2 Problems

Ok. Thanks Steve for cooperation smile.
Janusz

Re: 2 Problems

Hi,
I was directed here after reading https://frontaccounting.com/punbb/viewtopic.php?id=1567

Concerning the FA setups done under WAMP server package architecture,
make sure to modify both php.ini files.

One is located in
C:/wamp/bin/apache/Apache2.2.21
the other is in
C:/wamp/bin/php
I noticed that modfying just the first one doesn't do much.
I haven't tried modifying only the second one.

In any case, make sure that every php.ini you are using has
the following setting:
extension=php_openssl.dll
in stead of
;extension=php_openssl.dll

In other words:
MAKE SURE TO UNCOMMENT ;extension=php_openssl.dll

- Cheers