You don’t have permission to access the requested object of xampp

I am using Vista. I can not open:
http://localhost/security/lang.php?en

Access forbidden!
You don’t have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

It took me about 30 minutes and found this way to resolve the issure:

opened the file …\\\xampp\apache\conf\extra\httpd-xampp.conf

useing editplub open it and went to the line


Order deny,allow
Deny from all
Allow from localhost

changed this to

Deny From none
Allow from All

and saved the file , then i restarted xampp through Xampp control panel Application
stop and start function
and it worked and opened the security page very well
I then entered my passwords for all channels and when finished i went to the mentioned file and returned every thing as it was…

PHP 5.3 and Magento

I was installing Magento version 1.3.2.1 on a XAMPP version 1.7.2 instalation for a friend, and I got an error on the very beginning of the installation:

Fatal error: Method Varien_Object::__tostring() cannot take arguments in /magento/lib/Varien/Object.php

With a small research I found out that there is a known issue with Magento and the PHP 5.3. Not a problem though, the solution was only 2 lines of code away. More specifically:

On the file /lib/Varien/Object.php (Line 484)

Change this:

public function ___toString(array $arrAttributes = array(), $valueSeparator=’,’)

To that:

public function __invoke(array $arrAttributes = array(), $valueSeparator=’,’)

and on the file /app/code/core/Mage/Core/Controller/Request/Http.php (Line 274)

Change this:

$host = split(’:', $_SERVER[’HTTP_HOST’]);

To that:

$host = explode(’:’, $_SERVER[’HTTP_HOST’]);

Posted in Other. No Comments »