i try to confider a php project it gives error like :
[RInvalidCollectionOffsetException, 0]
Invalid Offset '0'
@line 362 in file /xxxxxxxx/public_html/lib/Classes/RCollection.php
Debug Backtrace
#1 preferences.php:358 -- RCollection->offsetGet(...)
#2 config_language.php:40 -- Preferences->create_language_session(...)
#3 common.php:92 -- include(...)
#4 index.php:14 -- require_once(...)
code is :
public function offsetGet($Offset)
{
if (isset($this->Data[$Offset])) {
return $this->Data[$Offset];
}
else {
throw new RInvalidCollectionOffsetException($Offset);
}
}
there are many function
According to the exception, you’re passing a value of
0tooffsetGet(), but there isn’t an offset of0in$this->Data. The code seems to be doing exactly what it’s supposed to be doing, as far as anybody here can tell (without knowing any runtime values).