Camen Design Forum


(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[1]: Uninitialized string offset


Oh, interesting!

The code looks for all `href`, `src`, and `content` HTML attributes in the template and then checks their first character. The notice being thrown means there was no first character (ie. it is empty).

Is this on the unchanged template?

Two possible fixes that immediately come to mind:

1. Find where any of those attributes are empty in the template and add some content to them.
2. Expand the `if` on line 66 to make sure the value isn’t empty (something like `strlen($node->nodeValue) > 0` would do the trick) before checking the first character.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn