Welcome Guest, Not a member yet? Register   Sign In
"Helper could not be loaded" -> Erkanaauth
#1

[eluser]Dauntless[/eluser]
Hi,

I'm trying to implement the Erkanaauth library.

In my controller, I have
Code:
$this->load->library('Erkanaauth');

I have uploaded the files (the library & the helper), but now I get this error:
Code:
An Error Was Encountered

Unable to load the requested file: helpers/erkanaauth_helper.php
This does seem to be right since the file name is "Erkanaauth_helper" (with a capital letter E).

But if I change the filename, I just get a bunch of other errors:
Code:
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/.../system/application/models/mainmodel.php:102)

Filename: libraries/Session.php

Line Number: 315
(line 102 of my model is the last (=empty) line of the file)

Should I rename it? If so, why do I get this error ? Could it be that the version of erkanaauth I have is not compatible with my CI version ?

//EDIT
I forgot to mention that I do understand the "Header already sent" error, but I just don't know why it is triggered in this situation ...

All help is appreciatedSmile
#2

[eluser]wwonka[/eluser]
I receive the same error message.
Did you manage to resolve this issue?
#3

[eluser]David Hyland[/eluser]
hi there, i'm sure you've probably sorted this out by now, but if anyone else is reading this and getting the same error then it's likely to be a filename issue. i was developing on XAMPP on windows and then published live to a unix box. unix is case-sensitive, so I just changed the "$this->load->library('Erkanaauth')" library load to "$this->load->library('erkanaauth')" (lowercase) and it all just sprang to life!




Theme © iAndrew 2016 - Forum software by © MyBB