Page 1 of 1

Need help with error-Interface 'SeekableIterator' not found

Posted: Sat Oct 17, 2009 4:42 pm
by Sideclef
I have been working locally on incorporating this class below for quite sometime...
http://blog.kungf.eu/archived/colour-gradient-php-class
Works beautifully locally with xampp..php ver5
I upload it all to my server and I keep getting an error Fatal error: Interface 'SeekableIterator' not found in gradient.class.php

I have looked at my servers php.ini but I cant see any difference in compared to my local one...maybe I am over looking something...but is there any thing that maybe has to be enabled that I might not have on my server...I am clueless...

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Sat Oct 17, 2009 6:13 pm
by requinix
You running PHP 4 on that server?

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Sat Oct 17, 2009 6:17 pm
by Sideclef
nope running 5...Have no idea what the problem is

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Sat Oct 17, 2009 6:59 pm
by requinix
What version? 5.0.x?

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Sat Oct 17, 2009 7:05 pm
by Sideclef
PHP Version 5.2.6

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Sat Oct 17, 2009 7:28 pm
by requinix
I suppose that the SPL could be disabled.

On that server, what does

Code: Select all

php --re spl
(to be run on the command line/terminal) produce?

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Sat Oct 17, 2009 8:13 pm
by Sideclef
All I got was instructions on how to use that command...I am on Unix if that matters

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Sat Oct 17, 2009 8:50 pm
by requinix
Okay, kinda vague. What instructions?

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Sun Oct 18, 2009 11:21 am
by Sideclef
[---- ~]$ php --re spl
Usage: php [options] [-f] <file> [args...]
php [options] -r <code> [args...]
php [options] [-- args...]
-a Run interactively
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse <file>.
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-r <code> Run PHP <code> without using script tags <?..?>
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z <file> Load Zend extension <file>.

args... Arguments passed to script. Use -- args when first argument
starts with - or script is read from stdin

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Sun Oct 18, 2009 1:41 pm
by Sideclef
So you know I checked my local php ver and it is PHP Version 5.2.9 think that the slight difference in ver could be causing that?

Sever ver=PHP Version 5.2.6
Local ver=PHP Version 5.2.9

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Sun Oct 18, 2009 1:51 pm
by requinix
I don't think so.

How about `php -m`?

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Sun Oct 18, 2009 2:38 pm
by Sideclef
php -m
provided

Code: Select all

ctype
mysql
openssl
overload
pcre
posix
session
standard
tokenizer
xml
zlib

[Zend Modules]
[/quote]

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Sun Oct 18, 2009 4:21 pm
by requinix
Wow, that's really, really minimal.

Your PHP was compiled without support for SPL. In fact, without support for a whole lot of things.
Complain to whoever manages the server and tell them that they crippled PHP.

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Mon Oct 19, 2009 3:45 pm
by Sideclef
Is there anything that I can do on my side?
Or is their problem completely?

Re: Need help with error-Interface 'SeekableIterator' not found

Posted: Mon Oct 19, 2009 4:17 pm
by requinix
Theirs. You can't do anything with something if there's nothing.

Along with SPL I'd suggest bcmath, calendar, date, dom, filter, ftp, hash, iconv, json, reflection, simplexml, and sockets.

It looks like somebody tried to "lockdown" or "secure" the PHP installation. Problems is, PHP is a lot like Java: it's so powerful because there are so many extensions. Take away those extensions and you're left with a lot that you can't do.