Javascript not working after upgrading to 3.2

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
dancingkazzaf
Joomla! Intern
Joomla! Intern
Posts: 53
Joined: Tue May 21, 2013 10:38 am

Javascript not working after upgrading to 3.2

Post by dancingkazzaf » Tue Dec 10, 2013 10:39 am

Hello I used a slideshow on my homepage using javascript. Since upgrading from 3.0 to 3.2 it has now stopped working and I just cant find away to get it to work again. This is the link and the big picture on the hompage is meant to slide through pictures but just nothing happens - http://inspiringhomesfurniture.co.uk/

Any help would be appreciated,
Karen

dancingkazzaf
Joomla! Intern
Joomla! Intern
Posts: 53
Joined: Tue May 21, 2013 10:38 am

Re: Javascript not working after upgrading to 3.2

Post by dancingkazzaf » Tue Dec 10, 2013 3:57 pm

I have read that It could be a conflicting jQuery file that 3.2 comes as default. But I still cant find a fix

drobertson123
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 102
Joined: Tue Mar 19, 2013 7:04 pm

Re: Javascript not working after upgrading to 3.2

Post by drobertson123 » Tue Dec 10, 2013 5:42 pm

I have been getting issues in the javascript for saving modules also. This was a direct result of the 3.2 upgrade.

I am trying to find a solution, but I am hitting a brick wall. If I find something that helps me I will post here. Hopefully it will be useful for you also.

As a side note, it looked like the 3.2 upgrade did a very poor job of cleaning up old files as it did the upgrade. I don't know if this is causing conflicts or not, but it is the path I am pursuing now.

drobertson123
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 102
Joined: Tue Mar 19, 2013 7:04 pm

Re: Javascript not working after upgrading to 3.2

Post by drobertson123 » Wed Dec 11, 2013 12:43 am

Just a heads up. While debugging similar problems I decided to make a backup then install the Joomla 3.2.x to 3.2.1 Stable Patch package from http://developer.joomla.org/cms-packages/

This cleared up many of my javascript issues. Regrettably the patch also seems to be a bit unstable since it wiped out a lot of the 3.2 upgrade changes and set my version of Joomla to 3.1.6 Stable. If they can clean up the 3.2.1 patch we may have a bit more stability.

I seriously wish that someone who had some information would hop on here and give us an update.

Let us know if this helps your issues.

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Javascript not working after upgrading to 3.2

Post by sovainfo » Wed Dec 11, 2013 1:16 am

Also used that update, but it is not saying 3.1.6. Where do you see that information?
Which 3.2 changes are you missing? Don't see anything about removing things. Other than BCRYPT, which is what it is all about!
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

drobertson123
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 102
Joined: Tue Mar 19, 2013 7:04 pm

Re: Javascript not working after upgrading to 3.2

Post by drobertson123 » Wed Dec 11, 2013 3:14 am

Immediately after I applied that update all the backend references to the Joomla version changed to 3.1.6. This is a direct copy of the information I see on the system information admin page;


Setting Value

PHP Built On Linux ip-10-202-207-168 3.4.71-63.98.amzn1.x86_64 #1 SMP Tue Dec 3 01:59:29 UTC 2013 x86_64
Database Version 5.5.34
Database Collation utf8_general_ci
PHP Version 5.3.27
Web Server Apache/2.2.25 (Amazon)
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.1.6 Stable [ Ember ] 01-August-2013 14:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36

Many of the features that I had been using in the 3.2 version were suddenly gone. Specifically the Install from the Web section under Extension Manager and the new Template Features. There may be more missing, but I can't be sure because many features I hadn't used yet.

Hopefully this helps someone get this patch fixed. I could really use it.

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Javascript not working after upgrading to 3.2

Post by sovainfo » Wed Dec 11, 2013 4:27 am

Try downloading again and verify in download libraries/cms/version/version.php. It should mention 3.2.1.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

drobertson123
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 102
Joined: Tue Mar 19, 2013 7:04 pm

Re: Javascript not working after upgrading to 3.2

Post by drobertson123 » Wed Dec 11, 2013 4:36 am

I just re-downloaded Joomla_3.2.x_to_3.2.1-Stable-Patch_Package.zip from

http://developer.joomla.org/cms-packages/

This is the contents of the version.php file

<?php
/**
* @package Joomla.Libraries
* @subpackage Version
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/

defined('_JEXEC') or die;

/**
* Version information class for the Joomla CMS.
*
* @package Joomla.Libraries
* @subpackage Version
* @since 1.0
*/
final class JVersion
{
/** @var string Product name. */
public $PRODUCT = 'Joomla!';

/** @var string Release version. */
public $RELEASE = '3.1';

/** @var string Maintenance version. */
public $DEV_LEVEL = '6';

/** @var string Development STATUS. */
public $DEV_STATUS = 'Stable';

/** @var string Build number. */
public $BUILD = '';

/** @var string Code name. */
public $CODENAME = 'Ember';

/** @var string Release date. */
public $RELDATE = '01-August-2013';

/** @var string Release time. */
public $RELTIME = '14:00';

/** @var string Release timezone. */
public $RELTZ = 'GMT';

/** @var string Copyright Notice. */
public $COPYRIGHT = 'Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.';

/** @var string Link text. */
public $URL = '<a href="http://www.joomla.org">Joomla!</a> is Free Software released under the GNU General Public License.';

/**
* Compares two a "PHP standardized" version number against the current Joomla version.
*
* @param string $minimum The minimum version of the Joomla which is compatible.
*
* @return bool True if the version is compatible.
*
* @see http://www.php.net/version_compare
* @since 1.0
*/
public function isCompatible($minimum)
{
return version_compare(JVERSION, $minimum, 'ge');
}

/**
* Method to get the help file version.
*
* @return string Version suffix for help files.
*
* @since 1.0
*/
public function getHelpVersion()
{
return '.' . str_replace('.', '', $this->RELEASE);
}

/**
* Gets a "PHP standardized" version string for the current Joomla.
*
* @return string Version string.
*
* @since 1.5
*/
public function getShortVersion()
{
return $this->RELEASE . '.' . $this->DEV_LEVEL;
}

/**
* Gets a version string for the current Joomla with all release information.
*
* @return string Complete version string.
*
* @since 1.5
*/
public function getLongVersion()
{
return $this->PRODUCT . ' ' . $this->RELEASE . '.' . $this->DEV_LEVEL . ' '
. $this->DEV_STATUS . ' [ ' . $this->CODENAME . ' ] ' . $this->RELDATE . ' '
. $this->RELTIME . ' ' . $this->RELTZ;
}

/**
* Returns the user agent.
*
* @param string $component Name of the component.
* @param bool $mask Mask as Mozilla/5.0 or not.
* @param bool $add_version Add version afterwards to component.
*
* @return string User Agent.
*
* @since 1.0
*/
public function getUserAgent($component = null, $mask = false, $add_version = true)
{
if ($component === null)
{
$component = 'Framework';
}

if ($add_version)
{
$component .= '/' . $this->RELEASE;
}

// If masked pretend to look like Mozilla 5.0 but still identify ourselves.
if ($mask)
{
return 'Mozilla/5.0 ' . $this->PRODUCT . '/' . $this->RELEASE . '.' . $this->DEV_LEVEL . ($component ? ' ' . $component : '');
}
else
{
return $this->PRODUCT . '/' . $this->RELEASE . '.' . $this->DEV_LEVEL . ($component ? ' ' . $component : '');
}
}
}

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Javascript not working after upgrading to 3.2

Post by sovainfo » Wed Dec 11, 2013 5:02 am

Downloaded and verified. Confirm your findings. Raised an issue on the repo, awaiting answers.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

drobertson123
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 102
Joined: Tue Mar 19, 2013 7:04 pm

Re: Javascript not working after upgrading to 3.2

Post by drobertson123 » Wed Dec 11, 2013 5:15 am

I appreciate your help. Do you have any sense when a good 3.2.1 patch will be ready to use? I have a wide variety of issues and I am hoping this may clear some of them up.

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Javascript not working after upgrading to 3.2

Post by sovainfo » Wed Dec 11, 2013 5:23 am

Just received answer. Download 320 to 321 update again, verified that it is 321 myself, just now.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Javascript not working after upgrading to 3.2

Post by sovainfo » Wed Dec 11, 2013 5:26 am

You might require the large update now! Being on 3.1.6!
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

drobertson123
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 102
Joined: Tue Mar 19, 2013 7:04 pm

Re: Javascript not working after upgrading to 3.2

Post by drobertson123 » Wed Dec 11, 2013 5:54 am

I downloaded the latest 3.2.1 patch. It had the correct info in the version.php file.

The 3.1.6 version I was on from the last upgrade would not install the patch without crashing. At this point I rolled back to a backup from just before the 3.1.6 issue. Luckily this is all on AWS so the process was quick.

The 3.2.1 patch now seems to have installed perfectly fine. My system now shows me on version 3.2.1.

I did a few tests and the modules are now saving properly. That is great and gets me back on track for my site.

Other issues that don't seem to be addressed in this patch are the Secret Key in the Login screen. There still seems to be no way of making that go away and it has my customers confused and the extra field is messing up my login form. Hopefully someone can get that on the fix list. I personally never expect to use two factor authentication.

I have had little time to run full tests, but I have not seen any other issues so far.

Thanks for the help

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Javascript not working after upgrading to 3.2

Post by sovainfo » Wed Dec 11, 2013 6:23 am

You are welcome.

I am not having a problem with TFA. I am not using it, not seeing it on the login module.
I don't recall any posts, here or repo. Could you elaborate on the problem?
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

drobertson123
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 102
Joined: Tue Mar 19, 2013 7:04 pm

Re: Javascript not working after upgrading to 3.2

Post by drobertson123 » Wed Dec 11, 2013 7:18 am

I have never enabled TFA in any way. I also went into plugins and specifically disabled all forms of two factor authentication.

Despite this a Secret Key field has been added to my log in form. The extra field is messing up the layout of the form and causing a large number of customer service questions due to confusion about what that means. Note - many of my users are not the most tech savvy people and the sudden appearance of an extra field really throws them off.

I have found no way of making the field go away and I am not entirely sure why it is showing up in the first place.

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Javascript not working after upgrading to 3.2

Post by sovainfo » Wed Dec 11, 2013 9:12 am

As a workaround replace line 19 of modules/mog_login/mod_login.php:

Code: Select all

$twofactormethods = ModLoginHelper::getTwoFactorMethods();
with

Code: Select all

$twofactormethods = array();
Ps: correction, needs to be empty array
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

rgblogs
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Sun Nov 16, 2008 7:12 pm

Re: Javascript not working after upgrading to 3.2

Post by rgblogs » Fri Dec 13, 2013 3:53 pm

There is nothing like in around line 19. Also, when I create menu item for login, then secret key field is not visible.

Code: Select all

<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_login
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;

// Include the syndicate functions only once
require_once dirname(__FILE__).'/helper.php';

$params->def('greeting', 1);

$type	= modLoginHelper::getType();
$return	= modLoginHelper::getReturnURL($params, $type);
$user	= JFactory::getUser();

require JModuleHelper::getLayoutPath('mod_login', $params->get('layout', 'default'));
Ask Me For Any Professional Joomla Help! ;)


Locked

Return to “General Questions/New to Joomla! 3.x”