Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

E_Strict Problem.


4 replies to this topic

#1 mrdee

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 810 posts
  • Gender:Male
  • Location:Slough (UK)
  • myCENT:90.63

Posted 08 March 2011 - 04:36 PM

Hi,
I use a program for making web forms called Simfatic Forms.

I was trying out the latest beta and uploaded a from to my local webserver (running via XAMPP).

There I got a bunch of errors, but the form was still displayed:

Quote

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\forms\users\includes\users-lib.php on line 3143

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\forms\users\includes\users-lib.php on line 6878

Strict Standards: Redefining already defined constructor for class Crypt_Blowfish_ECB in C:\xampp\htdocs\forms\users\includes\users-lib.php on line 13104

Strict Standards: Declaration of FM_ThankYouPage::Process() should be compatible with that of FM_Module::Process() in C:\xampp\htdocs\forms\users\includes\users-lib.php on line 10476

According to the developer of the program, Simfatic Forms does not differentiate between online and offline storage (local or on the Internet), he said that, according to the error messages, I must have E_STRICT enabled, and advises me to turn it off.

He also sent me a Google search link, but the pages all those links refer to might as well have written in Chinese as far as I am concerned.

Here is what I did:

Now, in my php.ini file, I found a line saying: "error_reporting = E_ALL | E_STRICT"
I removed the "| E_STRICT" bit, just leaving E_ALL.

After restarting XAMPP, the error just remained.

Could someone please tell me "IN plain English" if that was the right way to turn off E_STRICT or if I should have done it differently?

Let me just re-iterate: I am running this server locally, using the latest version of XAMPP (version 1.7.4).

All help will be very much appreciated.

#2 BCD

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 168 posts
  • Gender:Male
  • myCENT:27.66

Posted 08 March 2011 - 09:13 PM

Quote

Could someone please tell me "IN plain English" if that was the right way to turn off E_STRICT or if I should have done it differently?
Yes, you did the edit correctly. Since accodring to documentation E_STRICT is not included with E_ALL.

May be you could try setting "display_errors" in php ini file to "Off".

Or may be actually you did not edit the correct php.ini file. Long time ago when I used to user XAMPP I used to see 3 php.ini files in various directories within XAMPP directory. Since I never figured out which one was the one which did the trick, I used to edit all the three.

#3 mrdee

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 810 posts
  • Gender:Male
  • Location:Slough (UK)
  • myCENT:90.63

Posted 08 March 2011 - 10:34 PM

Yes BCD,
as you mention, I found php.ini, php.ini-production, php.ini-development and even php-pear.ini.

I removed the |E_STRICT in php.ini, php.ini-development, but in the 2 others it did not appear.
Now, when I run the form again, the error is still there.

I think I will have to get in touch with the programmer again.

But thanks for your help anyway.

#4 NateP

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 33 posts
  • Gender:Male
  • Location:Lost in cyberspace
  • myCENT:32.19

Posted 09 March 2011 - 03:29 PM

Hi Mrdee,

I am a novice PHP programmer and don't have all the answers by any stretch but I have had similar errors before. In my case the "depreciated" errors popped up because I was using a newer version of PHP on my web server than the version that the application was actually written for. You should check the documentation of the application you are trying to use and see if the application was coded on an older version of PHP. If this is the case then the problem will probably continue until 1)the developer updates the application, or 2)you change the PHP version you are using to match the application.

This was the case for me when "depreciated" errors plagued me. Hope it helps you :)

#5 mrdee

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 810 posts
  • Gender:Male
  • Location:Slough (UK)
  • myCENT:90.63

Posted 09 March 2011 - 04:10 PM

Thank you, Nate.

In the mean time I have sent the file which generated the errors to the programmer (especially since it is a beta version I am testing), and he is going to look into it.

In the mean time, I will wait to see what it leads to.

Thank you for your input.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users