Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Wednesday, October 19, 2011

Running Joomla for the first time

You're almost done with the configuration and as excited about running Joomla as I was and then you see -
"Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla16\administrator\components\com_hikashop\views\menu\view.html.php on line 15

Strict Standards: Creating default object from empty value in C:\xampp\htdocs\joomla16\administrator\components\com_hikashop\views\menu\view.html.php on line 22

Strict Standards: Non-static method hikashop::completeLink() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\joomla16\administrator\components\com_hikashop\views\menu\view.html.php on line 24

Strict Standards: Creating default object from empty value in C:\xampp\htdocs\joomla16\administrator\components\com_hikashop\views\menu\view.html.php on line 26

Strict Standards: Non-static method hikashop::completeLink() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\joomla16\administrator\components\com_hikashop\views\menu\view.html.php on line 28............................................................
You immediately Google and you reach here; or may be not, you found a link to this page. :)
Well here's what you do next.
  1. Open file php.ini (C:\xampp\php\php.ini). I hope you know your location path? Or find out.
  2. Search for term error_reporting = replace it with error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
  3. Search term display_errors = On and replace it with display_errors = Off
  4. Stop XAMPP and restart it
  5. Run Joomla in your browser. Congratulations!

Info on phpinfo()

phpinfo() is a function (so it looks like :) which returns information about your PHP environment.

Create and save and run it. Here you go.

  1. Open your text editor (notepad application)
  2. Write this piece of code  and save the file. Say you named it (phpinfo.php)
  3. Upload the file on to your web content folder of your domain. (htdocs, if localhost)
  4. Open your browser and type in www.domainname.com/phpinfo.php (if it's on your domain) or localhost/phpinfo.php (if it's on your local disk)