Version: 2.11.8 Reporter: Hop Studios —
This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report
EE 2.11.9 (that version number isn’t in the version dropdown ?)
Error that I have:
Severity: Warning Message: gmmktime() expects parameter 6 to be integer, string given Filename: helpers/date_helper.php Line Number: 380
In codeigniter/system/helpers/date_helper.php
It occured on a page that has a search results tag
Here’s the tag
In date_helper.php
I’ve changed
return gmmktime(
substr($time, 8, 2),
substr($time, 10, 2),
substr($time, 12, 2),
substr($time, 4, 2),
substr($time, 6, 2),
substr($time, 0, 4)
);
with
return gmmktime(
intval(substr($time, 8, 2)),
intval(substr($time, 10, 2)),
intval(substr($time, 12, 2)),
intval(substr($time, 4, 2)),
intval(substr($time, 6, 2)),
intval(substr($time, 0, 4))
);
And the error is now gone.
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```