Joomla - DateTime::__construct() [datetime.--construct]: Failed to parse time string - parsing

Since I develop under J3.2, I've got a recurrent error with the Joomla "calendar" field.
Once the field value is recorded in BDD with the sql format : "Y-m-d H:i:s", I've got an error 500 when I open the form for edit my content.
DateTime::__construct() [datetime.--construct]: Failed to parse time string (2014-10-17 10-28-58) at position 11 (1): Unexpected character
The component K2 and all these associated extension are disabled.
It appear that the parser have a problem with the empty string between the date and the time.
Is anybody can give me a solution ??
Thankz by advance for your help !
Mickael

I found my mistake : the format string of my calendar field was bad.
I used "Y-m-d H-i-s" instead of "Y-m-d H:i:s"

Related

S22.Imap.BadServerResponseException - IMAP xm003 BAD [CLIENTBUG] Command syntax error

Problem with the S22.Imap:
xm003 BAD [CLIENTBUG] Command syntax error
my Search Condition from the Example:
IEnumerable<uint> uids = client.Search(SearchCondition.SentSince(new DateTime(2015, 10, 20)));
oll other SearchCondition's work fine. Pls Help.
The problem is that S22.Imap is sending an incorrectly formatted date string in the SENTSINCE search query.
Since S22.Imap is a dead project, I would recommend switching to my open source MailKit library instead.
Hope that helps.

#Error On Calculated Field

I am new to Microsoft Report Builder and so can somebody help me.
I have search the Internet but cannot find an answer to my problem.
How can I replace the #Error with "-" from the following calculation when the Date of Birth field is blank.
DateDiff(DateInterval.Year,Fields!Date_of_Birth,Fields!Date.Value
I am using Report Builder 2.00.
Use an If statement to check if the Date of Birth field is blank and return "-" if it is, otherwise run your code normally:
=Iif(IsNothing(Fields!Date_of_Birth.Value), "-", DateDiff(DateInterval.Year,Fields!Date_of_Birth.Value,Fields!Date.Value))

BreezeSharp client and the TimeSpan issue

We're unable to re-hydrate the Breeze# client object which has TimeSpan? properties and if prop value is not null
BreezeServer returns the TimeSpan in the ISO 8601 format (eq. "PT8H") but as TimeSpan.Parse() expects different format [ws][-]{ d | [d.]hh:mm[:ss[.ff]] }[ws] a System.FormatException is thrown ("String was not recognized as a valid TimeSpan") in the Breeze.Sharp.JsonEntityConverter while parsing objects.
Is this a known issue? IS there any workaround for it?
Ok, this was a bug and has been fixed in the lastest version on the breeze.sharp GitHub repo, it will also go out in the next release, probably sometime next week. Please confirm whether or not it corrects your issue.

String index out of range error when URL contains two dots

I have a ColdFusion 9 server which serves the following error on any ColdFusion page where the URL contains the characters .. after a / e.g. http://www.example.com/..cfm or http://www.example.com/..foo/bar.cfm :
String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.AbstractStringBuilder.delete(AbstractStringBuilder.java:698)
at java.lang.StringBuffer.delete(StringBuffer.java:373)
at coldfusion.util.Utils.collapseDotDots(Utils.java:604)
at coldfusion.util.Utils.canonicalizeURI(Utils.java:558)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:39)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:175)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at com.seefusion.Filter.doFilter(Filter.java:49)
at com.seefusion.SeeFusion.doFilter(SeeFusion.java:1500)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
I haven't been able to reproduce this on every server I've tested, but it seems to occur on the majority. Looking at the error, it looks like it relates to part of ColdFusion rather than any ColdFusion code running on these sites. Can anyone shed any more light on this e.g. how to catch the error?
I was getting the above error and figured out that this can be handled by "Site-wide Error Handler" in ColdFusion Admin. I directed it to my 404.cfm.
Hope it helps.

Parse yaws get query

This crashed
out(A) ->
io:format("~wqqq12", yaws_api:queryvar(A, "id"), yaws_api:parse_query(A)),
with this
Reason: {function_clause,
[{io,request,
["~wqqq12",{format,undefined,[{"id","F1D79543E9E6583B"}]}]},
But it's clear that "id" is present in the get query. Why can't it parse it?
edited:
And query: *.yaws?id=F1D79543E9E6583B
edited2:
sorry for misleading, but i use format for send values to browser, its intended error. I'm intersted in why second argument in format becomes "undefined".
You are calling io:format the wrong way. The correct is:
io:format(Format, ListOfParams)
Where Format is a String and ListOfParams is a list of terms to be used in your format.
Check the io:format/2 manual for more details.

Resources