errors when trying to install joomla template

Problems with the Windows version of XAMPP, questions, comments, and anything related.

errors when trying to install joomla template

Postby leopardman » 09. March 2012 11:12

Hi
I hope you can bear with a noob for a while. I am a complete novice to programming. I am currently learning how to use Joomla to build myself a website. I have installed Xampp as my local host (running on my windows xp64 pc) I have installed joomla on top of that. When I come to install a template in joomla I am getting lots of error messages and I am not able to edit the template. The errors also appear on the front end of my site. Below are listed the errors I get when I try to open the template for editing.

Strict Standards: Declaration of GantryModelTemplate::preprocessForm() should be compatible with that of JModelForm::preprocessForm() in C:\xampp\htdocs\joomla2.5\administrator\components\com_gantry\models\template.php on line 27

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\administrator\components\com_gantry\views\template\view.html.php on line 35

Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\joomla2.5\administrator\components\com_gantry\models\template.php on line 192

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 421

Strict Standards: Non-static method GantryLoader::import() should not be called statically in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 40



Strict Standards: Declaration of LikeWhereClause::testRow() should be compatible with that of WhereClause::testRow() in C:\xampp\htdocs\joomla2.5\libraries\gantry\core\gantryflatfile.class.php on line 662

Strict Standards: Non-static method GantryLoader::import() should not be called statically in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 40


Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 328

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 331

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 332

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 286

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\core\utilities\gantrycache.class.php on line 70

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\core\gantry.class.php on line 205

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\core\gantry.class.php on line 487

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\core\gantry.class.php on line 1089

Strict Standards: Non-static method GantryLoader::import() should not be called statically in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 40

Strict Standards: Declaration of GantryParamProcessorAlias::postLoad() should be compatible with that of GantryParamProcessor::postLoad() in C:\xampp\htdocs\joomla2.5\libraries\gantry\core\params\processors\alias.php on line 17

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\core\gantry.class.php on line 487

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\core\gantry.class.php on line 487

Strict Standards: Non-static method GantryLoader::import() should not be called statically in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 40



Strict Standards: Non-static method GantryLoader::import() should not be called statically in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 40

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\core\gantry.class.php on line 291

Strict Standards: Non-static method GantryLoader::import() should not be called statically in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 40

Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\joomla2.5\administrator\components\com_gantry\models\template.php on line 122

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\core\config\gantryform.class.php on line 649

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\core\config\gantryform.class.php on line 649

Strict Standards: Non-static method GantryLoader::import() should not be called statically in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 40

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\core\gantry.class.php on line 1051

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2.5\libraries\gantry\core\gantry.class.php on line 1051

Strict Standards: Non-static method GantryLoader::import() should not be called statically in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 40

Strict Standards: Non-static method GantryLoader::import() should not be called statically in C:\xampp\htdocs\joomla2.5\libraries\gantry\gantry.php on line 40



This is not all of it, I have deleted some of the repeated entries and It goes on and on, but I will not paste them all. With so many errors I must have done something major wrong. I did try the same steps with an install on a free host trial of cloud access.net and I didn not get errors so I presume there is something wrong with my XAMPP configuration Can anyone help. Please be slow as I do not have any coding experience.

Many thanks to anyone who answers.

Antony
leopardman
 
Posts: 4
Joined: 09. March 2012 10:13
Operating System: Windows xp 64

Re: errors when trying to install joomla template

Postby Altrea » 10. March 2012 09:11

Hi Antony,

You haven't done something wrong. Joomla uses some sloppy programming styles in some modules and functions.
This produces such messages.

You have to adjust the "error_reporting" setting in your php.ini to get Joomla working.

  • Open your php.ini
  • search for
    Code: Select all
    error_reporting = E_ALL | E_STRICT
  • change to
    Code: Select all
    error_reporting = E_ALL
  • save the file
  • restart Apache

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: errors when trying to install joomla template

Postby leopardman » 14. March 2012 15:54

Thankyou so much for your reply Altrea. Could I trouble you to ask how do I open php.ini Sorry I am a complete novice.

Many thanks

Antony
leopardman
 
Posts: 4
Joined: 09. March 2012 10:13
Operating System: Windows xp 64

Re: errors when trying to install joomla template

Postby Altrea » 14. March 2012 16:34

leopardman wrote:Thankyou so much for your reply Altrea.

You are very welcome :D

leopardman wrote:Could I trouble you to ask how do I open php.ini

First you should ensure, that you didn't hide known file extensions, like described here:
http://windows.microsoft.com/en-US/wind ... extensions

Then navigate to C:\xampp\php\

in that directory you should see a php.ini file

you can simply open it with notepad.exe (which comes already with windows), or your html/php editor or any other plaintext editor, but don't use Microsoft word or any other word processor, because they use meta informations for formating, etc.

search for the line which is exactly
Code: Select all
error_reporting = E_ALL | E_STRICT


(don't search for just error_reporting, because you will find some other places where comments explains which values you can use on that setting.)

if you have found the correct place, replace the line with
Code: Select all
error_reporting = E_ALL


save the file and restart your Apache (stop/start), otherwise changes on the php.ini will not take effect.

best wiches,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: errors when trying to install joomla template

Postby leopardman » 15. March 2012 09:08

I managed to locate it. I found the offending text. I opened it in notepad and edited it as suggested. I then stopped Xampp and reopened it. but I am still getting the same errors?
leopardman
 
Posts: 4
Joined: 09. March 2012 10:13
Operating System: Windows xp 64

Re: errors when trying to install joomla template

Postby Altrea » 15. March 2012 16:53

don't stop XAMPP, but Apache.
open http://localhost/xampp/phpinfo.php and search for error_reporting.
Which value does this setting have?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: errors when trying to install joomla template

Postby leopardman » 21. March 2012 18:10

I found the value 32767
leopardman
 
Posts: 4
Joined: 09. March 2012 10:13
Operating System: Windows xp 64

Re: errors when trying to install joomla template

Postby Altrea » 21. March 2012 19:46

leopardman wrote:I found the value 32767

32767 is the value for E_ALL (counts 30719) + E_STRICT (counts 2048).
Which means that your change doesn't take effect.
You must have done something wrong or incomplete.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: errors when trying to install joomla template

Postby theaki » 22. May 2012 14:26

Thank you Altrea for posting reply on this thread, you helped me a lot too! :D

Jihaa :)
theaki
 
Posts: 1
Joined: 22. May 2012 14:09
Operating System: Win7/32

Re: errors when trying to install joomla template

Postby schartier » 15. August 2012 02:59

Hi everyone,

For me (Xampp Version 1.8.0), there was 2 occurences of error_reporting in the original XAMPP php.ini file. I was trying to change the first occurence :)

At line 109

Code: Select all
; error_reporting
;   Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
;   Development Value: E_ALL
;   Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT


Line 535

Code: Select all
; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for. The recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. The error level constants are below here for convenience as well as
; some common settings and their meanings.
; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
; those related to E_NOTICE and E_STRICT, which together cover best practices and
; recommended coding standards in PHP. For performance reasons, this is the
; recommend error reporting setting. Your production server shouldn't be wasting
; resources complaining about best practices and coding standards. That's what
; development servers and development settings are for.
; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
;
; Error Level Constants:
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
; E_ERROR           - fatal run-time errors
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
; E_DEPRECATED      - warn about code that will not work in future versions
;                     of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
;   E_ALL (Show all errors, warnings and notices including coding standards.)
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices)
;   E_ALL & ~E_NOTICE & ~E_STRICT  (Show all errors, except for notices and coding standards warnings.)
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; http://php.net/error-reporting
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
schartier
 
Posts: 1
Joined: 15. August 2012 02:46
Operating System: Windows XP

Re: errors when trying to install joomla template

Postby Altrea » 15. August 2012 17:49

Hi schartier,

schartier wrote:For me (Xampp Version 1.8.0), there was 2 occurences of error_reporting in the original XAMPP php.ini file.

What do you think does the ; in front of a line in a .ini file mean!?
The first block is just an example to what this setting can be set.
The real setting is the very last line of your second code snippet.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: errors when trying to install joomla template

Postby speller » 05. September 2012 17:29

I'd like to ask for some help with this issue too.

I recently installed MediaWiki 1.19.1 on xampp 1.8.0. Yesterday I added this extension and while the pages that call it do produce a list of pages very nicely, there is also an error:

Strict Standards: Only variables should be assigned by reference in D:\xampp\htdocs\mediawiki\extensions\DynamicPageList\DPLMain.php on line 2549

I am no php mediawiki or apache hotshot, but after reading this thread, in php.ini I changed

error_reporting = E_ALL | E_STRICT

to

error_reporting = E_ALL

saved the file, and restarted apache. Oddly, phpinfo.php still reports 32767.

Then I completely rem'd that line, restarted apache. phpinfo.php reports 'no value'. So I am editing the right line (and I know what a rem'd line is).

Then I return the line to error_reporting = E_ALL | E_STRICT, save, restart apache. phpinfo.php reports 32767.

I don't understand why error_reporting = E_ALL | E_STRICT and error_reporting = E_ALL end up being the same value? I've checked everything very carefully many times; rebooted, etc.
speller
 
Posts: 17
Joined: 09. November 2009 02:39

Re: errors when trying to install joomla template

Postby Altrea » 05. September 2012 21:24

Hi speller,

speller wrote:I don't understand why error_reporting = E_ALL | E_STRICT and error_reporting = E_ALL end up being the same value? I've checked everything very carefully many times; rebooted, etc.

But you haven't read the documentation: http://php.net/manual/en/function.error-reporting.php
In PHP 5.4 E_STRICT becomes part of E_ALL.
So if you want to hide the messages, you have to do something like that:
Code: Select all
error_reporting = E_ALL & ~E_STRICT


best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: errors when trying to install joomla template

Postby speller » 05. September 2012 23:29

Thank you for your reply.

This setting, and the manual page you pointed to, are really confusing.

The manual provides examples like this:

// Report all errors except E_NOTICE
// This is the default value set in php.ini
error_reporting(E_ALL ^ E_NOTICE);

But that syntax fails utterly for me. Parens are rejected, ending semicolon is not needed. And in my php.ini, all of the examples use ~ as the NOT operator. See the next line, from php.ini

; E_ALL & ~E_NOTICE (Show all errors, except for notices)

Anyways none of them work. I always get that error message, no matter what I do, for example

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
speller
 
Posts: 17
Joined: 09. November 2009 02:39

Re: errors when trying to install joomla template

Postby Altrea » 06. September 2012 06:12

speller wrote:This setting, and the manual page you pointed to, are really confusing.

The manual provides examples like this:

// Report all errors except E_NOTICE
// This is the default value set in php.ini
error_reporting(E_ALL ^ E_NOTICE);

But that syntax fails utterly for me. Parens are rejected, ending semicolon is not needed. And in my php.ini, all of the examples use ~ as the NOT operator.

Because the manual is for the php function error_reporting() not for the runtime configuration.
This manual can be found here: http://www.php.net/manual/en/errorfunc. ... -reporting and has the same notice for E_STRICT setting in PHP 5.4

speller wrote:Anyways none of them work. I always get that error message, no matter what I do, for example

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

Because Joomla uses it's own error settings which will override the runtime configuration. This is one reason why Joomla is not yet ready for PHP 5.4.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: ben.mansuk, JJ_Tagy and 58 guests