Camen Design Forum

Delete

(Leave this as-is, it’s a trap!)

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[3]: Uninitialized string offset

Martijn

Was it your modifications to the theme that triggered the error? I’d love to get to the bottom of this.

Sorry, my second possible fix just showed the minimal code that would need to be added, assuming whoever was going to add it knew their way around PHP. The line should probably be something like this (note: not tested):

%
foreach ($template->query ('//*/@href, //*/@src, //*/@content') as $node) if (strlen($node->nodeValue) > 0 && $node->nodeValue[0] == '/')
%

Inside the if statement, it should first check the length of the nodeValue before comparing the first character to `/`.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn