Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Errors with WAMP (http://www.mysidiaadoptables.com/forum/showthread.php?t=4283)

MikiHeart 11-05-2013 03:53 AM

Errors with WAMP
 
I know I keep posting a lot of threads, I'm sorry XD

I can get the script to work in WAMP. Because I want to develop it on my computer and create my own mods, without having to have it on a live server. You must know how much of a pain it is to ftp upload and download files all the time.

And then someone could find it, have access and start signing up and doing things you don't want.

Where on my computer with WAMP, I can control everything, keep it private, and use GIT.

So far I've only tested installing and logging in (I did have problems with installing, it wouldn't connect to the database. So I took out where it requires a password to be entered for the database and it installed correctly)

I get this error:

Notice: Undefined variable: controller in C:\wamp\www\adopts\classes\class_language.php on line 111

and this one:

Notice: Undefined property: DocumentRenderer::$thematicBreak in C:\wamp\www\adopts\classes\class_guirenderer.php on line 184

The second one shows up a half a dozen times. While I can turn off errors, that's no good for when I'm developing mods.

Hall of Famer 11-05-2013 09:11 AM

Oh I see, this is because you have enabled notice error/warning, which are usually disabled on webhosts since most PHP script will throw notice errors for not defining variables/properties before using them. You can manually disable notice errors through php.ini, or you may choose to go with the hard way to actually define every variable/properties shown on the error message.

MikiHeart 11-05-2013 09:29 PM

If I disable the error/warning, it doesn't show any php errors. I'll keep fiddling it around in that case.

Hall of Famer 11-06-2013 07:45 AM

We'll you are not supposed to disable all PHP errors and warnings, only those 'notice' errors. You may search on PHP official site/manual to find out what I mean by notice errors. There are various levels/categories of errors you can get for PHP, many PHP script causes notice errors since the most webhosts disable them by default so it's not their concerns.

MikiHeart 11-06-2013 09:12 PM

Oh okay. I will research it in that case. Thank you. I'll let you know if I get it working.

Edit:

I couldn't get the edit in the php.ini file to work, so I just added

"error_reporting(E_ALL ^ E_NOTICE);" to the config file, and it works.


All times are GMT -5. The time now is 10:52 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.