Links issue after upgrading to 7.1.5

Hello, I have upgraded from 7.1.4 to 7.1.5 with no error reported and I am facing issues with links in forum module when using french language.

My observation is that any link refering to "javascript:void(0);" is just doing nothing. But I have no clue what can explain this behavour.

I tested to duplicate the following en directories as fr, clearing caches, and it did not help.

modules/boonex/forum/js/en => modules/boonex/forum/js/fr

modules/boonex/forum/classes/en => modules/boonex/forum/classes/fr

modules/boonex/forum/layout/base_en =>modules/boonex/forum/layout/base_fr

modules/boonex/forum/layout/uni_en => modules/boonex/forum/layout/uni_fr

Could someone help me identify the cause of this issue?

Quote · 10 Mar 2015

I would look for any javascript errors; you go to your browser console and check to see if any javascript errors are reported.

Geeks, making the world a better place
Quote · 10 Mar 2015

Good tip geek_girl!

I get the folowing. How can I use it to identify where is the pb?

SyntaxError: Unexpected identifier
http://www.seg1test.fr/gzip_loader.php?file=bx_templ_js_56257e454aa28489950ebc3bbd71ab63.js:3659

ReferenceError: $ is not defined
http://www.seg1test.fr/forum:15

ReferenceError: BxUserStatus is not defined
http://www.seg1test.fr/forum:20

ReferenceError: BxMsgUpdate is not defined
http://www.seg1test.fr/forum:65

ReferenceError: jQuery is not defined
http://www.seg1test.fr/forum:307

ReferenceError: $ is not defined
http://www.seg1test.fr/forum:793

ReferenceError: $ is not defined
http://www.seg1test.fr/forum:1192

ReferenceError: Forum is not defined
http://www.seg1test.fr/forum:1232

ReferenceError: $ is not defined
http://www.seg1test.fr/forum:1242

ReferenceError: $ is not defined
http://www.seg1test.fr/forum:1425

ReferenceError: BxHistory is not defined
http://www.seg1test.fr/forum:24
Quote · 10 Mar 2015

Around the line 3659 in the file mentionned as first error I have the following. I don't see what is causing the error.

Forum.prototype.stick = function (id)

{

        var h = function (r) {

        var ret = orca_get_xml_ret(r);

                if ('1' == ret)

            alert ('Le sujet est suivi');

                else if ('-1' == ret)

            alert ('Le sujet est plus suivi');     <<<<< line 3659

        else

                    alert ('_Error occured');

                return false;

        }

 

        jQuery.ajax ({

                url: this._base + "?action=stick&topic_id=" + id,

                dataType: 'text',

                type: 'POST',

                success: h

        });

 

        return false;

}

Quote · 10 Mar 2015

Copying en to fr manually is not the proper procedure. You most likely will not be able to compile the forum languages now.

So step 1 is to remove all those copies you made. Those will not work. They need to be created properly as part of the forum language compile process.

Step 2 is to switch to the default en language, then under manage forum compile the en language first, then compile the fr language. If any error occurs during compile then let us know. The files that get created when the forum language is compiled is where the problem is.

Step 3 is to clear the dolphin cache. Manually using ftp if necessary to make sure the cache actually gets cleared.

The last error you posted is a damaged forum cache file. Looking at the actual JS files are pointless. Unless you modified them There will not be any problems with those as they are the same files everyone else is using.

https://www.deanbassett.com
Quote · 10 Mar 2015

Thank you for answering deano92964.

 

Step 1 => using the en content in place of the fr one was working... just still showing the same issue with english language. After having this test done, I reversed to initial state

 

Step 2 => already did it. Even after manualy removing all en/fr directories to regenerate them. No error shown during compilation but still same issue.

 

Step 3 => I manually (connected on server with ssh) cleared the cache for every test I performed

 

Note: "The files that get created when the forum language is compiled is where the problem is" => I would agree but I could not identify any that seems to be related to the issue.


What is strange is that there is issue that seems to be related to language but 7.1.5 patch is coming with no language change.

Quote · 10 Mar 2015

Shut off the JS caching option in dolphin and try again with that caching off.

https://www.deanbassett.com
Quote · 10 Mar 2015

You quite found the issue deano92964.


Keeping the caching for JS files is OK.

Not enabling compression for JS/CSS files was sufficient to solve the issue.


There seems to be something related to gzip_loader.php and language specific.

Quote · 10 Mar 2015

 

You quite found the issue deano92964.


Keeping the caching for JS files is OK.

Not enabling compression for JS/CSS files was sufficient to solve the issue.


There seems to be something related to gzip_loader.php and language specific.

 
No. It is common and not related to languages. It just simply does not work with all js. Some js cannot be compressed without breaking it. It's sporatic, all over the board and no one has been able to pinpoint the exact cause but has been a common issue for years.

https://www.deanbassett.com
Quote · 10 Mar 2015

 

No. It is common and not related to languages. It just simply does not work with all js. Some js cannot be compressed without breaking it. It's sporatic, all over the board and no one has been able to pinpoint the exact cause but has been a common issue for years.

It probably should just be removed in future Dolphin releases; if for nothing else to minimise the support issues.

Geeks, making the world a better place
Quote · 10 Mar 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.