WordPress.org

Ready to get started?Download WordPress

Forums

Cannot redeclare is_rtl (64 posts)

  1. byronrode
    Member
    Posted 4 years ago #

    Hi guys,

    Here is the link: http://www.byronrode.co.za/downloads/events-calendar-6.6.1_patched.zip

    I have tested this on a live site and there are no issues so far as I can see.

    Please read the notes below before installing.

    I have patched the 6.6 version and dubbed it version 6.6.1 however there is no reflection of this in the Plugins Repo or in the Administration area, but it is heavily commented where I made changes. This will be sent through to the developer and I will work closely with him to add all the changes into the upcoming version.

    Please ignore all the changes i have posted above if you are new as they are all included and follow the process below.

    If you have already followed the above, just replace the entire plugin folder using the method below.

    NB: Backup, Backup, Backup

    Before installing this patch (you need to replace the entire plugin) make sure you have made a backup of both your database and your current plugin folder. Delete the existing plugin, unzip and upload the linked file and replace any css that you may have edited.

    Please note that the css for a day that has an event no longer functions via the administration and now appends a class to the cell element.

    Changelog (including above fixes):
    - Added the ability to enable/disable tooltips in the administration
    - Fixed WordPress 3.0 initialization issues
    - Added "hasEvent" class to table cell for days that have events
    - Modified the LargeCalendar and LargeCalendarJS to echo by default, but added the ability to return the markup using bool(true/false). This is merely documented for historical purposes as the change was needed for the new shortcode loading of the calendar to work and has no effect within any templates.
    - Added Native WP Shortcode for the plugin to load the Large Calendar. Now loads by calling "[events-calendar-large]" replacing the existing method. Please replace where necessary in your pages/posts.
    - The WP shortcode addition also stops the plugin from preventing other plugins/themes shortcodes to load when used on the same page as the calendar.
    - Cleaned up JS from above which was looping when navigating through 2 or more months.
    - Changed the JS in the sidebar calendar to load the JS and prev/next links correctly when navigating through months

    It is 2:30 am here so I may have missed something, so if you notice any bugs or if there are any issues, please post here or via my email and I will get to them as soon as possible.

    Also note, I only made the above changes to the large calendar, with 1 minor change to the sidebar calendar and cannot for certain say that event listing or the sidebar widget calendar is working 100% but if you come across any issues, I will have a look.

    Thanks for your patience.
    Byron

  2. BushwackCA42
    Member
    Posted 4 years ago #

    Well Byron, I did the suggested procedure and it's still not working for me. Not sure if it's ME or not. I think tomorrow I'll delete the DB on my test site and do a complete reinstall and see if it works...I hope you and the developer can get this thing right man, I really love this plugin.

  3. SamBarker
    Member
    Posted 4 years ago #

    Good work mate, looks good, all working for me

    Just a point to note on my site when i run the sidebar widget for the calendar (which I really want to do) it prevents other images on that page from loading.

    It was doing this before all of this wp 3.0 clashing came up so it's not a problem with your patches, they work a treat.

    Just a point of note for you when 7.0 is being tested.

    for further info search for the plugin and read the threads on this forum
    http://forum.bytesforall.com/

    I am using the atahualpa theme.

    Thanks again

    Cheers

  4. SamBarker
    Member
    Posted 4 years ago #

    oh maybe some sort of facebook events integration would be of great value :D

  5. byronrode
    Member
    Posted 4 years ago #

    Glad it's working for some :) @bushwhack I'll drop you an email again and let's see if we can figure it out.
    Byron

  6. Gidget-
    Member
    Posted 4 years ago #

    First.... Thank you thank you thank you!
    I uploaded your patched version above, and nothing crashed!
    Unfortunately, I'm having the same problem with the sidebar widget as SamBarker above.
    I'm running a custom theme. :)
    I'm going to be tinkering with it, but ... anybody have any tips?
    Thanks!!

  7. budaloco
    Member
    Posted 4 years ago #

    I found something that could solve this image issue.

    In line 308 of the file: ec_js.class.php of the plugin (it´s in the folder)

    You´ll see the following:
    jQuery("img").attr("src", arguments[i]);

    Replace it with
    jQuery("#calendar_wrap img").attr("src", arguments[i]);

    Added the wrapper ID ("#calendar_wrap") so it only preloades images inside the calendar container.

    No problems until now.

    Hope this works for you.

    Cheers from Argentina!

    ben

  8. Gidget-
    Member
    Posted 4 years ago #

    Thanks! Found and fixed, no problem.
    Unfortunately, I still have a problem with the hover feature on the widget, i.e. the box with the information for the event does not appear upon mouseover of the date.
    This problem was there previously, I just thought it was caused by the same problem as the images (so I didn't mention it, sorry).
    It appears to be calling the javascript fine, so I'm not sure what the problem is. Is anyone else experiencing this? Or is it a problem on my end? :(
    Thanks again, ben!!!!

  9. Gidget-
    Member
    Posted 4 years ago #

    I'm getting the error that "tb_show is not defined"
    If that helps.
    Thanks!

  10. SamBarker
    Member
    Posted 4 years ago #

    nice work budaloco

    seems to have cured the problem on my site. However when i go to switch months in the calender using the widget on the homepage I still get the grey sliding bar when it is loading the next month.

    It's not really an issue, I dont even know what that image is supposed to be, maybe the grey sliding bar is the default, but as for other images it looks all good, thanks for the fix!

    If you want to investigate further look at newcastleslsc.com.au

    @gidget - yeah experiencing same thing, I have to click and it comes up lightbox style (which is still sweet as, hover would be nicer but)

    I'm not a massive php coder *sigh* (one day) so I can't really offer any help :(

    Any of you guys know when EC 7 is coming by any chance?

  11. rucanunes
    Member
    Posted 4 years ago #

    My calendar it's almost 100 working. I just have to "major problems":

    1. On the add event admin page, I don't have the icons to choose a date and have to write them manually. These icons appears only in the edit event form.

    4. I can add events, but on the sidebar widget, when I choose the calendar view, I don't see any events on that calendar, only if I choose the list view. Also, there's icons to navigate months, but when I click them, they change the Month and r«then go away.

    ???

  12. rucanunes
    Member
    Posted 4 years ago #

    Ok, it seems that now only two problems remain:

    - No mouse-over effect on the calendar widget
    - On the add event admin page, I don't have the icons to choose a date and have to write them manually. These icons appears only in the edit event form.

  13. Gidget-
    Member
    Posted 4 years ago #

    @SamBarker (and anyone else interested)
    Mine doesn't even pop up when I click on it. (tested in both firefox and ie--neither work).

    I'm beginning to believe this means I was wrong, and it's not calling up the javascript files it needs... maybe? But everything else is working, as far as I can tell. Thanks for working so hard on this, everybody. :)

  14. s3than
    Member
    Posted 4 years ago #

    First up thanks to byronrode for the patch and everyone for there input.

    I've spent a lot of time on this plugin and got my issues down to two things.

    1.No tooltip on widget calendar or scrolling :(

    2.If multiple events are listed on a day only the last event is showing in the tooltip.

    I have pulled apart the patch version and chopped and cut to get this far... I have used different parts in the forum to get these.

    So what I do have:

    1. Tooltip popup on sidebar list

    2. Linking ok in sidebar

    3. Scrolling of Large calendar

    4. Full link in Tooltip on large calendar

    5. No Apparent image problems (admittedly I have only tested briefly)

    6. No issues with Admin screen or widget list

    I have only started working with js and php so my commenting is non existent in my ec_class file as I spent the whole time going through the patch and a working calendar in 2.92 to ensure that I could get the functionality I needed for the site I'm working on (deadlines don't help).. I also need sleep.

    Effectively I have modified the ec_class out of the patch to give me the little things I needed, but to resolve the last issues my skill level has been reached. :(

    Happy to provide the code if anyone wants to try and resolve the last few issues for themselves.

  15. s3than
    Member
    Posted 4 years ago #

    Went back and added the comments :)

  16. Kollman
    Member
    Posted 4 years ago #

    Patch worked great on my site, but did run across one problem that isn't as important. In Safari, it only shows the first event of each month and then all the rest are hidden. IE & FF show all of them.

    Thanks for all the work and time!

  17. moli309
    Member
    Posted 4 years ago #

    Hi, Byroncode
    Installed your patch and works great on WP 3.0.
    Thank you so much for all your work.

  18. gogel
    Member
    Posted 4 years ago #

    hi s3than, how did you fix the

    2.If multiple events are listed on a day only the last event is showing in the tooltip.

    problem? Do you have the code for that?
    Thanks!

  19. cydward
    Member
    Posted 4 years ago #

    Not only doesn't it work, but it totally disables WordPress for me altogether. (WordPress 3.0) The only way I could get back into my site was to remove the Events Calendar plugin folder out in my file manager. I should think that if a plugin fails (which it did), it would just not install at all, but the new code was trying to run anyway. The error I received should not surprise you:

    Fatal error: Cannot redeclare is_rtl() (previously declared in C:\wamp\www\explore_ca\blog\wp-includes\locale.php:347) in C:\wamp\www\explore_ca\blog\wp-includes\locale.php on line 349

    I was trying this plugin because it's used as an example in a Lynda.com tutorial and I wanted to walk through the steps with the video.

    Lastly, when I hit the bug tracker link under Details, it took me here:
    bug tracker
    which is one of those darn advertising sites that pops up windows all over my screen. Please update that link.

  20. s3than
    Member
    Posted 4 years ago #

    @gogel

    Sorry that's one of the ones I haven't worked out.

    I've been looking into the Admin Calendar to see how it divides the day up to try and replicate that in the large calendar.

    If I work it out I'll put the code up but at the moment not looking good for me :(

  21. byronrode
    Member
    Posted 4 years ago #

    Hi guys,

    Have you all updated to version 6.6.2? I have been extremely busy with the launch of two sites that have required an immense amount of my time, so haven't had a chance to look into the problems above.

    Our sites launch this Thursday and I should have a bit more free time to focus on the above errors.

    I will be working on the SVN versions as well as integrating all the fixes into 7.0.

    Please be patient, while I try and work with the developer to get all these problems sorted out.

    Cheers,
    Byron

  22. byronrode
    Member
    Posted 4 years ago #

    @cydward - please try the latest version (6.6.2) of the plugin that is available from the Plugin Repo - that resolves the issue. If you are still having problems please let me know.

    Thanks,
    Byron

  23. aneotoena
    Member
    Posted 4 years ago #

    tooltips still doesn't show in list widget.

  24. VermilionDL
    Member
    Posted 4 years ago #

    byronrode, I ran the 6.6.2 update, and will be rolling to 3.0 during a maintenance window tonight. I just wanted to say, thank you, a ton, for jumping on this the way you did. I cannot tell you the panic when I reloaded the site to that error. Thank god for nightly backups. The kind of support you guys provide are absolutely the reason the WordPress community is so robust.

  25. fidosmarket
    Member
    Posted 4 years ago #

    Hi. I just wanted to jump in with the issue of the mouse-over not working. Has anyone found a solution for this yet?

    Also, I think the calendar is reading me to be in the wrong time zone. In the evenings when I'm working it shows my "current day" as what is actually tomorrow. But during the day, it's correct. Not sure of specifically what time it is rolling over, but I think it's sometime after 6PM EST.

  26. wijgalt
    Member
    Posted 4 years ago #

    I'm using wp 3.0 and downloaded the 6.6.2 version. I'm not crashing wp like before, but 6.6.2 does not process the EventsCalendarLarge as it did before the latest version. Any suggestions?

    http://www.miniatureaerosportsters.org/mas-calendar/

  27. snumb130
    Member
    Posted 3 years ago #

    Use [events-calendar-large] now.

  28. Ms Chris
    Member
    Posted 3 years ago #

    I must say BYRONRODE is an ABSOLUTE genius .... you literally saved me HOURS upon HOURS of headache.... God bless you!!!!

  29. snumb130
    Member
    Posted 3 years ago #

    @sing242 - Yes he is. I am very grateful to him for taking the time to not only fix some issues, but share them with everyone else.

  30. LocalVibe
    Member
    Posted 3 years ago #

    Hello,

    I am suffering from the same issues that s3than had, specifically

    2.If multiple events are listed on a day only the last event is showing in the tooltip.

    If anyone has a fix for this it would be greatly appreciated. My calendar is one of the highest viewed pages on my site and I have had great success with this plugin in the past. Looking forward to getting running 100% again.

    Great work on all the other fixes, and the overall development of this plugin.

    Keep up the great work!!

Topic Closed

This topic has been closed to new replies.

About this Topic