Welcome Guest, Not a member yet? Register   Sign In
[Solved] CodeIgniter on WAMP Server
#1

[eluser]IamPrototype[/eluser]
To develope faster I wanted to code my apps offline using WAMP. I got it all installed so I started coding my first app, just a simple model retrieving the entries from my database. After loading the model, setting up the view etc. I got this error in my browser.

Code:
Fatal error: Cannot use object of type stdClass as array in C:\wamp\www\cms\system\libraries\Loader.php(673) : eval()'d code on line 12

I haven't changed anything in the loader, so I guess it has to be WAMP's fault. Any suggestions for another server where CI will work on?

----- I solved it. :)
#2

[eluser]onepieceartist[/eluser]
Hey Dude,
It would have been better to post your solution when you solved it or deleted your post. Without it this post is just a dead end.
#3

[eluser]onepieceartist[/eluser]
I was getting this error after moving my site from local to live. In my case it was because I was using PHP short tags which were not supported on my server, even though I had rewrite_short_tags set to true in my config file. Changed all short php opening tags
Code:
<?
to standard
Code:
<?php
and the problem resolved.




Theme © iAndrew 2016 - Forum software by © MyBB