Calendar 1.4.6 not working on localhost
Moderator: Tata
Calendar 1.4.6 not working on localhost
I try to build a website with most frequently used plugins - as a demo webpage.
Now I have found that the ca,endar 1.4.6 doesn't work on localhost (CMSimple_XH 1.6.9).
There is only the start time and evtl. the internal link saved. All other fields in Eventlist are empty and there are also no event days shown in any calendar (IM calendar, multicalendar etc.). Editting the webpage on line, everything works.
What's wrong?
Now I have found that the ca,endar 1.4.6 doesn't work on localhost (CMSimple_XH 1.6.9).
There is only the start time and evtl. the internal link saved. All other fields in Eventlist are empty and there are also no event days shown in any calendar (IM calendar, multicalendar etc.). Editting the webpage on line, everything works.
What's wrong?
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Calendar 1.4.6 not working on localhost
Is it on a Mac? Did it work with former CMSimple_XH versions?Tata wrote:Now I have found that the ca,endar 1.4.6 doesn't work on localhost (CMSimple_XH 1.6.9).
Christoph M. Becker – Plugins for CMSimple_XH
Re: Calendar 1.4.6 not working on localhost
Yes, it's on iMAC and it worked with previous versions. Now it also works fine online.cmb wrote:Is it on a Mac? Did it work with former CMSimple_XH versions?
You may have a look at what I am working now on at http://cmsimple_xh_plugins.cmsimple.sk.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Calendar 1.4.6 not working on localhost
There might be line ending issues? (I can only guess wildly, because I wouldn't have an iMac available, and the issue might not even be iMac specific.)Tata wrote:Yes, it's on iMAC and it worked with previous versions.
Great! Perhaps it might be a good idea to join forces with Hartmut, Michael and maybe others?Tata wrote:You may have a look at what I am working now on at http://cmsimple_xh_plugins.cmsimple.sk.
Christoph M. Becker – Plugins for CMSimple_XH
Re: Calendar 1.4.6 not working on localhost
I don't know. There is no notice nor warning concerning the plugin in debugger report. I belive more that it may be cause by new PHP. It has worked before. Now I see thet it doesn't work even on the pages from older times. So either it is the PHP versioin or new OSX El Capitan. And I don't know how to find the reason.cmb wrote:There might be line ending issues? (I can only guess wildly, because I wouldn't have an iMac available, and the issue might not even be iMac specific.)
This is only an idea and the texts are only for design purpose. It should be in real more descriptiv.cmb wrote:Tata wrote:You may have a look at what I am working now on at http://cmsimple_xh_plugins.cmsimple.sk.
If such approach would be acceptable, there is to think about the name of the webpage and the domain. The page may be redirected wherever. If somebody would be interested to work on this page, I can give him full access (incl. FTP).
Something wired again.
I demonstrate the usage of cocontent. Each H1 page has its cocontent in the first newsbox. In template I have
Code: Select all
<?php
$test = strip_tags(coco('cocontent'));
$test = str_replace(array(" ", "\r","\n", " "), '', $test);
if(strlen($test) > 0) {
echo coco('cocontent');
}else{
echo newsbox('News01');
}?>
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Calendar 1.4.6 not working on localhost
Indeed, it is is, because support for the e modifier of preg_replace() has been removed as of PHP 7.0.0. And there are other issues with Calendar running on PHP 7. The posted diff might serve as base for a new calendar release.Tata wrote:I belive more that it may be cause by new PHP.
On a quick glance the code looks fine. Maybe there are caching issues again (OPcache)?Tata wrote:It works fine on localhost but not online. Is there something wrong with the code?
Christoph M. Becker – Plugins for CMSimple_XH
Re: Calendar 1.4.6 not working on localhost
Seems to be the case. I am slowly sick of these new changes on servers.cmb wrote:On a quick glance the code looks fine. Maybe there are caching issues again (OPcache)?
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Calendar 1.4.6 not working on localhost
If you don't want to or can't reconfigure the OPcache, you can try to prepend the following line to PHP files your modifying (such as template.htm):Tata wrote:Seems to be the case. I am slowly sick of these new changes on servers.cmb wrote:On a quick glance the code looks fine. Maybe there are caching issues again (OPcache)?
Code: Select all
<?php if (function_exists('opcache_invalidate')) opcache_invalidate(__FILE__)?>
Christoph M. Becker – Plugins for CMSimple_XH
Re: Calendar 1.4.6 not working on localhost
Thank's, will try.
This should be added somewhere to Tips&Tricks section.
This should be added somewhere to Tips&Tricks section.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.