Posted on: 09/01/03 07:53am
By: Anonymous (Ennuic)
Post-installation problem. It has been very easy so far, and this is not a major problem at the moment, but some help would be nice.
Anyone can register and be logged in, however. Admins who are logged in, view these errors:
Warning: strpos(): Offset not contained in string. in /home/carlennu/public_html/lib-common.php on line 2249
Warning: strpos(): Offset not contained in string. in /home/carlennu/public_html/lib-common.php on line 2088
And regular members who are logged in only see the second one. A search on www.geeklog.net revealed no help to me. Anyone?
Re:strpos(): Offset not contained
Posted on: 09/01/03 08:44am
By: Dirk
Well, it\'s not an error, it\'s only a warning. The code it\'s complaining about is for the user and the admin blocks (that\'s why admins get two warning messages). Need to look into it to see how to rewrite it ...
In the meantime, try to change the
error_reporting
at the beginning of lib-common.php to read
error_reporting(E_ERROR | E_PARSE | E_COMPILE_ERROR);
i.e. remove the
E_WARNING
and see if that helps.
bye, Dirk
Re:strpos(): Offset not contained
Posted on: 09/02/03 03:07am
By: Anonymous (Ennuic)
Greatly appreciated! Working good now.
Re:strpos(): Offset not contained
Posted on: 09/02/03 04:29am
By: Dirk
Would you mind telling me what your setting for $_CONF[\'site_url\'] is? I had a look at the code and can\'t figure out why it would emit such a warning message - unless you entered some fairly unusual URL there ...
bye, Dirk
Re:strpos(): Offset not contained
Posted on: 09/17/03 11:40pm
By: Anonymous (Big Ajax)
I don\'t know what Ennuic\'s problem was, but for your info Dirk, I had this problem because my site url was blank in config.php. My server was behind a nat router. So then when I entered the ip address for the site in config.php, no one could access the site locally. They had to use the server\'s local ip address (192.168.1.132). But I could not put this ip in config.php because it is non-routable - outside users would not be able to access the site.
For some reason, leaving the site url variable blank in config.php allowed me to tweak things so that I could get the site fully up for outside users, and partially up (substantially) for inside users.
But I got the error Ennuic has mentioned. I turned warnings off and all was well. Once I got a static ip address for the server, everything was as it should be.
I suspect Ennuic had an invalid url entered in config.php.
Re:strpos(): Offset not contained
Posted on: 09/18/03 02:23pm
By: Dirk
[QUOTE BY= Big Ajax] I don\'t know what Ennuic\'s problem was, but for your info Dirk, I had this problem because my site url was blank in config.php.[/QUOTE]
Thanks. It would never have occured to me that having an invalid URL in that variable could make sense. I\'ll take this into account.
bye, Dirk