• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
4,547 Warnings & 10 Errors

#1
Bug 
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]
Reply

#2
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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#3
(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.
Reply

#4
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]
Reply

#5
(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
Reply

#6
@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]
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.