Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • perdu Friend
    #156270

    There is a javascript conflict with the K2 component which is preventing front end editing or adding an item, have spent the last week trying to get this to work on a live site and ended up installing the quickstart package to see if the error was there too and it is:
    <blockquote>
    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)
    Timestamp: Wed, 10 Nov 2010 10:54:11 UTC

    Message: ‘document.getElementById(…)’ is null or not an object
    Line: 150
    Char: 3
    Code: 0
    URI: /administrator/components/com_k2/lib/simpletabs_1.3.js</blockquote>

    This is stopping the K2 tabs on the front end edit item and add now item from working. The error is there with Portfolio set in development mode with no caching or script compression. If you switch to any of the default templates – rhuk_milkyway, beez or JA_Purity there are no errors so the conflict is with something in JA Portfolio. I thought Portfolio was designed to work with K2?

    perdu Friend
    #362283

    Also if the user closes the editing window by clicking the X this error occurs:

    <blockquote>Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)
    Timestamp: Wed, 10 Nov 2010 11:25:06 UTC

    Message: Can’t execute code from a freed script
    Line: 1
    Char: 32179
    Code: 0
    URI: /plugins/system/mtupgrade/mootools.js
    </blockquote>

    Saguaros Moderator
    #362363

    <em>@perdu 202818 wrote:</em><blockquote>Also if the user closes the editing window by clicking the X this error occurs:</blockquote>

    as your report, the issue is from the k2 component, it was happening when you enabled the Mootools Update Plugin. Now you try to disable this plugin and check this issue again

    perdu Friend
    #362449

    The error still occurs when you disable the plugin, please read the ticket I submitted to the support desk and test this out yourselves using internet explorer as I need to get this fixed asap. The error does not occur when a template other than portfolio is used.

    This is the error with the Moo tools update plugin DISABLED
    <blockquote>
    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)
    Timestamp: Thu, 11 Nov 2010 12:23:49 UTC

    Message: ‘undefined’ is null or not an object
    Line: 50
    Char: 13
    Code: 0
    URI: media/system/js/tabs.js

    Message: Object doesn’t support this property or method
    Line: 59
    Char: 102
    Code: 0
    URI: media/system/js/mootools.js

    </blockquote>

    Saguaros Moderator
    #362685

    ok, when your template is having any problem javascript errors,

    1) you try to disable the optimize js function, because in some cases, your site used a lot extension using javascript code, when combined into a file, it may cause errors
    2) You will use the Exclude JS,CSS function: you try putting name of javacript files which having errors in the Optimize Exclude parameter inside the template’s configuration. and Then enable the Opitimize JS funcion

    In front -end: I disabled the optimize js function , i did not see errors in IE
    Please check again

    perdu Friend
    #362725

    Words fail me, I am completely stunned that no one has bothered to read the support tickets properly. Below is the current error that you left me with this morning!!
    What part of login in from the front end using IE8 and try submitting or editing an article via K2 did no one get?

    <blockquote>Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)
    Timestamp: Sat, 13 Nov 2010 09:50:35 UTC

    Message: ‘undefined’ is null or not an object
    Line: 381
    Char: 153
    Code: 0
    URI: blogs/item/add?tmpl=component

    Message: Object doesn’t support this property or method
    Line: 59
    Char: 102
    Code: 0
    URI: media/system/js/mootools.js</blockquote>

    Please note that the error occurs with or with out the Mootools upgrade plugin enabled the only thing that changes about the error is the path to mootools!! Which incidentally is essential for the running of my site and I was not impressed to find that you had switched it off!

    The template is advertised as being compatible with K2 but it isn’t as users can’t submit articles using Internet Explorer!!

    For the last time please install any of the quick start pages on your webspace and login in to the front end using Internet Explorer and try to edit or add an article to K2 via the front end and you will clearly see the errors and will have extreme difficulty using the tabs on the edit form.

    I even sent screenshots from the quickstart package, I can’t believe you still got it wrong.

    I’ve attached the screen shots that I sent when I submitted the ticked they are taken from a virgin install of the JA Portfolio quick start package (latest release). Please look at them carefully.


    Front end user tries to add an item to K2


    1. 4
    2. 1
    3. 5
    4. 3
    5. 2
    Phill Moderator
    #362735

    Sorry, but I am unfamiliar with the K2 component. Where is the edit button from the frontend?

    *edit – Sorry, I didn’t realise Administrator and Site Ownere were considered different groups in K2.

    perdu Friend
    #362738

    As an update, it doesn’t look as if any of the recent JA templates using the T3 framework work with front end editing in K2, with or without css/js compression, caching ect enabled or disabled. Pre T3 framework templates and all of the default Joomla ones do.

    Phill Moderator
    #362741

    It seems to be working for me if I change Optomize JS to Join & Minify and enable the Mootools Upgrade plugin and add js1.js form the exceptions list.

    I’ll flag this up for the developers to look at.

    Phill Moderator
    #362742

    Steps needed to replicate this bug.

    1 – Install the template quickstart.
    2 – Go into the usergroups panel of K2 and in the registered group enable front end editing.
    3 – Logon to the site from the frontend
    4 – Go to any K2 article and press the edit button.

    In IE8 you will see a number of js errors depending on what you do. In FF various problems occur.

    perdu Friend
    #362746

    Hi Phil,
    I’ve added js1.js to ‘Optimize Exclude’ and cleaned t3 and cache but the error is still happening for me, I’ve tried turning off T3 cache, optimize & compression too 🙁

    Phill Moderator
    #362751

    Arvind has passed this onto the devs to take a look. As it is the weekend please do not expect an immediate response.

    perdu Friend
    #362753

    Ok, thanks for looking at it anyway, I’ve been pulling my hair out all week trying to get it to work :((

    perdu Friend
    #363084

    It’s now Wednesday, is there a fix yet?

    Saguaros Moderator
    #363106

    <em>@perdu 203869 wrote:</em><blockquote>It’s now Wednesday, is there a fix yet?</blockquote>

    Please try the solutions described here: http://www.joomlart.com/forums/topic/k2-tabs-on-addedit-item-form/

Viewing 15 posts - 1 through 15 (of 16 total)

This topic contains 16 replies, has 3 voices, and was last updated by  perdu 14 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum