CodeIgniter Forums
4,547 Warnings & 10 Errors - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: 4,547 Warnings & 10 Errors (/thread-68620.html)



4,547 Warnings & 10 Errors - LordLiverpool - 08-05-2017

Hello CodeIgniters,

I'm new to CodeIgniter, so please forgive my ignorance.

I downloaded CodeIgniter-3.1.5, unzipped it to a new directory and then opened it with Eclipse PDT (Oxygen).

Without writing a single line of code I was presented with 4,547 warnings & 10 errors.
Deleting the User Guide (It uses frames?) reduced it to just 10 errors & 9 warnings. 
(See the two screenshots below.)

Questions:
  • Can anyone tell me if these errors are true/false?
  • Is there any way to resolve these errors?
  • Is this just a consequence of using Eclipse PDT?
  • If so, then what's the best IDE to use with CodeIgniter please?
Thanks in advance.

Best Regards

[Image: nIvjUH.jpg]


[Image: iJd2n7.jpg]


RE: 4,547 Warnings & 10 Errors - InsiteFX - 08-05-2017

I get a lot of warning using phpStorm, but most of them are from comments that
are returning the wrong type in the return.

I would worry more about the errors then the warning, but look at the warnings
you could probably fix a lot of them but they are in the core files.


RE: 4,547 Warnings & 10 Errors - jarmen_kell - 08-05-2017

(08-05-2017, 03:25 AM)LordLiverpool Wrote: Hello CodeIgniters,

I'm new to CodeIgniter, so please forgive my ignorance.

I downloaded CodeIgniter-3.1.5, unzipped it to a new directory and then opened it with Eclipse PDT (Oxygen).

Without writing a single line of code I was presented with 4,547 warnings & 10 errors.
Deleting the User Guide (It uses frames?) reduced it to just 10 errors & 9 warnings. 
(See the two screenshots below.)

Questions:
  • Can anyone tell me if these errors are true/false?
  • Is there any way to resolve these errors?
  • Is this just a consequence of using Eclipse PDT?
  • If so, then what's the best IDE to use with CodeIgniter please?
Thanks in advance.

Best Regards

I'm using PDT oxygen and I've never seen any of that kind of error before.
have you tried setting your project "PHP Version" into 5.6 or less ?
or if you choose "User default PHP settings" in the project properties,
have you tried changing your OS's php environment path into a php version that is 5.6 or less?

also, Netbeans PHP Platoform.
PDT is kind'a inferior to Netbeans PHP in regards to feature such as Composer support,
Framework's Support, etc.


RE: 4,547 Warnings & 10 Errors - LordLiverpool - 08-08-2017

Thanks everyone

I've just seen that the images I originally attached are too small to be legible. So here's a close up:

[Image: o0aBhi.jpg]


RE: 4,547 Warnings & 10 Errors - LordLiverpool - 08-08-2017

(08-05-2017, 09:20 AM)InsiteFX Wrote: I get a lot of warning using phpStorm, but most of them are from comments that
are returning the wrong type in the return.

I would worry more about the errors then the warning, but look at the warnings
you could probably fix a lot of them but they are in the core files.

@InsiteFX 

Thanks for replying.

I haven't written any code, so I don't understand my Eclipse found so many errors in CodeIgniter???

Cheers


RE: 4,547 Warnings & 10 Errors - LordLiverpool - 08-08-2017

@jarmen_kell

Thanks for replying.

Within Eclipse PDT I've just changed my PHP to 5.6 (see image)

But it made no difference.

[Image: Kxp5Jh.jpg]

Running phpinfo reveals I'm on PHP 5.6.28

[Image: Kvz7kA.jpg]

And like you said to do I've added PHP to my path in Windows, but I'm still getting the errors and warnings.

[Image: X78GaI.jpg]