Events Made Easy › Forums › Bug fixed or feature request implemented › mktime() question
Tagged: mktime()
- This topic has 11 replies, 3 voices, and was last updated 13 years, 10 months ago by Anonymous.
-
AuthorPosts
-
Tue 16 Nov 2010 at 13:09 #42232AnonymousInactive
Hi,
I’m facing some mktime() errors with Google Chrome (7.0.517.44) with Windows Vista 32-bit on large calendar. Errors come when I try to browse for next month on large calendar. Also one user reported same behaviour with some version of IE.
Warning: mktime() expects parameter 4 to be long, string given in aluevalmennus.info/public_html/wp-content/plugins/events-manager-extended/eme_calendar.php on line49
You can find it on:
http://www.aluevalmennus.info/keski-suomi/kalenteri/
Should I select some specific date format on WordPress to fix this?
Tue 16 Nov 2010 at 14:10 #45364AnonymousInactiveAnd versions on site are:
WordPress (3.0.1 fi)
Events Manager Extended (3.2.7)
Tue 16 Nov 2010 at 15:18 #45365FrankyKeymasterHmmm … could you try the following: change in eme_calendar.php on lines 495,496 the code
(isset($_GET['calmonth'])) ? $month = eme_sanitize_request($_GET['calmonth']) : $month = '';
(isset($_GET['calyear'])) ? $year = eme_sanitize_request($_GET['calyear']) : $year = '';to
(isset($_GET['calmonth'])) ? $month = intval($_GET['calmonth']) : $month = '';
(isset($_GET['calyear'])) ? $year = intval($_GET['calyear']) : $year = '';And then try again?
Tue 16 Nov 2010 at 16:02 #45366AnonymousInactiveI tried the solution and it fixed something. Now there is not any errors (with Chrome) but it doesn’t populate the next month events (only empty calendar). On Firefox and Safari it works always.
Tue 16 Nov 2010 at 21:52 #45367FrankyKeymasterApparently it’s a weird thing with the way jquery works in google chrome. Please undo my previous suggestion and try this: in eme_calendar.php, change lines 443-446 from:
month_n = tableDiv.children('div.month_n').html();
year_n = tableDiv.children('div.year_n').html();
cat_chosen = tableDiv.children('div.cat_chosen').html();
author_chosen = tableDiv.children('div.author_chosen').html();to
month_n = tableDiv.children('div.month_n').text();
year_n = tableDiv.children('div.year_n').text();
cat_chosen = tableDiv.children('div.cat_chosen').text();
author_chosen = tableDiv.children('div.author_chosen').text();and the same for lines 462-465. Would be great if you could test it in any browser/OS combo at your disposal. I tried firefox and chrome on linux and it seems to work fine.
Franky
Wed 17 Nov 2010 at 11:56 #45368AnonymousInactiveThanks for fast fix and solution.
Large calendar works now also on Chrome when browsing with next and previous buttons.
I tested this:
Vista 32-bit
FF 3.6.12
IE 8.0.6001.18975
Chrome 7.0.517.44
Safari 5.0.2
Opera 10.63
Although one content manager on my site claims to have still problems with Vista 32-bit and IE 8.0.6001.18975. Calendar doesn’t populate next month events. I dont’t have more specific details of that case and there’s no errors shown for him. He has cleared the cache but still empty next month. I can’t verify the problem with similar type (versions) setup.
Thanks for this effort!
Ps. I am finalizing a translation into Finnish language. Would you be intrested if I send it to you by mail when it is complete?
Wed 17 Nov 2010 at 12:15 #45369FrankyKeymasterSure, you can mail any translation to: liedekef [at] telenet.be
Are you interested in the latest .pot file for this?
Thu 18 Nov 2010 at 12:55 #45370AnonymousInactiveHmm, I said it too early.
I tested now with Author level (where are my content managers also) instead of Admin level.
Author level:
* Creating new event works strange. After creating new event you can see all your own events (like you should always). ( admin.php?page=events-manager&action=update_event&event_id=2442 )
* When you hit Events on Admin panel you can see only some of the own events
* And while you are on IE it shows only same events on large calendar which you can see on Admin side. (missing some random own events)
Ps. I’ll mail you about language case.
Thu 18 Nov 2010 at 14:22 #45371FrankyKeymasterI’m guessing this is something else (maybe a rights problem on my side or so).
Can you give me admin access + a problem author access to your site so I can check this out?
Tue 11 Jan 2011 at 20:14 #45372AnonymousInactiveSorry about the offtopic reply, but this is the only place I’ve found information about a Finnish language translation for EME. Is the translation completed? If not, I would be interested in working on it further.
So, Timpe or Franky, could you send me the Finnish translation file? My address is jyri.tuulos [at] gmail.com. It would be nice not to have to start from scratch if a working translation exists.
Tue 11 Jan 2011 at 20:22 #45373FrankyKeymasterThanks for the offer, juriga! Unfortunately there’s no Finnish translation yet, I believe the “sv” translation is Swedish …
But if you’re still up to the task, the template file can be found here: http://plugins.trac.wordpress.org/browser/events-manager-extended/trunk/langs/eme.pot?rev=331412&format=txt
Using poedit can make the task easier, see:
http://weblogtoolscollection.com/archives/2007/08/27/localizing-a-wordpress-plugin-using-poedit/
Thu 27 Jan 2011 at 10:12 #45374AnonymousInactiveI just mailed straight to Jyri.
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.