Freelancer
Well-known member
Are you sure the js files have been uploaded?
I uploaded all files and they are all present and the install did not throw any errors.
Are you sure the js files have been uploaded?
Hello, I tried version 4.0.1, XF 1.5.7, Safari 9.1 and with any page load I get the following Script Errors in the Browser Console:
View attachment 134227
The Code looks like this.
View attachment 134228
Does the add-on conflict with the "APP Icons"? I wonder if this works with Safari anyway?
After deactivating the add-on, the Errors are gone.
deferred javascript add-on
I have about 40 add-ons running, but not one of that kind.@Freelancer Something like this, https://xenforo.com/community/resources/defer-js.2972/
<script src="js/jquery/jquery-1.11.0.min.js"></script>
No Sir, the server is entirely free from "Goofle".If he's using PageSpeed via his HTTP server the same thing can be happening.
It comes AFTER the script from Live Update? That's where the fault lies. You need to move jQuery to be loaded before all other JS codes. Even before xenforo.js.JQuery is in the <head></head> (and thus before <body>) and it comes after the script from Live Update.
It comes before xenforo.js but there are additional add-ons that did put their scripts before JQuery. I would appreciate if you could give me a hint how I make sure JQuery is loaded first of everything.It comes AFTER the script from Live Update? That's where the fault lies. You need to move jQuery to be loaded before all other JS codes. Even before xenforo.js.
Faulty codes. I believe it looks for <link> tag with "icon" in its rel attribute, so it got "apple-touch-icon" as well. You'll probably have to modify the template modification. I encountered this issue before because I also have apple-touch-icon in various sizes. But I've modified the add-on and completely removed the icon feature because I wasn't really fond of it anyway. I have made my site to only add the (n) prefix in the title bar (I also modified the Preferences page to reflect this change).What I dont understand is that it "sticks" itself to the app icons. The app icons are just <link> tags in the PAGE_CONTAINER. And the script is duplicated for every app icon?
View attachment 134228
I suggest checking PAGE_CONTAINER template. I believe you added those "apple-touch-icon" by yourself? At least I did it manually in my site. If so, just make sure that you move them after jQuery and preferably after xenforo.js as well.It comes before xenforo.js but there are additional add-ons that did put their scripts before JQuery. I would appreciate if you could give me a hint how I make sure JQuery is loaded first of everything.
Faulty codes. I believe it looks for <link> tag with "icon" in its rel attribute, so it got "apple-touch-icon" as well. You'll probably have to modify the template modification. I encountered this issue before because I also have apple-touch-icon in various sizes. But I've modified the add-on and completely removed the icon feature because I wasn't really fond of it anyway. I have made my site to only add the prefix in the title bar (also modified the Preferences page).
I suggest checking PAGE_CONTAINER template. I believe you added those "apple-touch-icon" by yourself? At least I did it manually in my site. If so, just make sure that you move them after jQuery and preferably after xenforo.js as well.
I see what you mean... The Template Mod explicitly states "Favicon" in the description but targets the apple-touch icon...Faulty codes. I believe it looks for <link> tag with "icon" in its rel attribute, so it got "apple-touch-icon" as well. You'll probably have to modify the template modification.
What??? It targets "apple-touch-"??? That's weirder than I thought.. Well, it has been more than a month since I did the change, so my memories are rather vague. But yeah, just set it to specifically target your favicon... or I'm not sure anymore..I see what you mean... The Template Mod explicitly states "Favicon" in the description but targets the apple-touch icon...
Yeah, adding them before </head> is fine as well.Yes, I added the app icons myself. As pragmatic as I am, I just did place them at the very end before </head> and BINGO, the errors are gone (!!!), but the script attaches itself to each app icon still.
Whats the best way to put JQuery on top of all? I See PAGE_CONTAINER calls for "page_container_js_head" and in there is the call for JQuery, right?
The template modification is added just after the apple-touch-icon of which, by default, there should only be one. If you add more then it will find them and duplicate the location for the JS code.I see what you mean... The Template Mod explicitly states "Favicon" in the description but targets the apple-touch icon...
View attachment 134259
I can't immediately offer a solution to this other than moving your touch icons elsewhere so they are not in that template. Maybe the page_container_js_head template would work (as long as the XF added touch icon remains where it is).
<link href="{$xenOptions.uix_favicon}" rel="icon
<xen:include template="liveupdate_page_container" />
$0
<link rel="shortcut icon" href="{xen:if $xenOptions.liveUpdateFavicon, $xenOptions.liveUpdateFavicon, favicon.ico}" />
<link rel="shortcut icon" href="{xen:if $xenOptions.liveUpdateFavicon, $xenOptions.liveUpdateFavicon, $xenOptions.uix_favicon}" />
Great idea. I now did the same. Thanks!I added mine right after favicon and before Open Graph.
Would you recommend using this add-on in general?I also use Defer JS though, so all other SCRIPT tags are moved before </body> tag.
I'm telling you man, it's the Matrix!!!What??? It targets "apple-touch-"??? That's weirder than I thought.
Server Error Log
Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Data truncated for column 'liveupdate_display_option' at row 1 - library/Zend/Db/Statement/Mysqli.php:214
Generated By: Unknown Account, Apr 2, 2016
Stack Trace
#0 /home/*******/public_html/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /home/*******/public_html/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/*******/public_html/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `xf...', Array)
#3 /home/*******/public_html/library/XenForo/DataWriter.php(1638): Zend_Db_Adapter_Abstract->insert('xf_user_option', Array)
#4 /home/*******/public_html/library/XenForo/DataWriter.php(1627): XenForo_DataWriter->_insert()
#5 /home/*******/public_html/library/XenForo/DataWriter.php(1419): XenForo_DataWriter->_save()
#6 /home/*******/public_html/library/XenForo/ControllerPublic/Register.php(416): XenForo_DataWriter->save()
#7 /home/*******/public_html/library/Waindigo/JoinUserGroup/Extend/XenForo/ControllerPublic/Register.php(64): XenForo_ControllerPublic_Register->actionRegister()
#8 /home/*******/public_html/library/UserEss/ControllerPublic/Register.php(68): Waindigo_JoinUserGroup_Extend_XenForo_ControllerPublic_Register->actionRegister()
#9 /home/*******/public_html/library/Andy/RegisterEmail/ControllerPublic/Register.php(7): UserEss_ControllerPublic_Register->actionRegister()
#10 /home/*******/public_html/library/XenForo/FrontController.php(351): Andy_RegisterEmail_ControllerPublic_Register->actionRegister()
#11 /home/*******/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#12 /home/*******/public_html/index.php(13): XenForo_FrontController->run()
#13 {main}
Request State
array(3) {
["url"] => string(56) "https://www.greateriowareefsociety.org/register/register"
["_GET"] => array(0) {
}
["_POST"] => array(15) {
["username"] => string(0) ""
["a372a7891d77fd4a31ab7ffde6737566"] => string(12) "*******"
["3b1799a110bb377944b29a197541ab7b"] => string(21) "*******@gmail.com"
["18ae0bd8fe7b473fcac691d1eebf428a"] => string(0) ""
["5fa85cc1fd1c3a084bd8ef729832a94d"] => string(4) "male"
["dob_month"] => string(2) "*******"
["dob_day"] => string(2) "*******"
["dob_year"] => string(4) "*******"
["location"] => string(19) "*******"
["d5503573afc4538e4392bac4a3f64b1f"] => string(15) "America/Chicago"
["captcha_question_answer"] => string(4) "*******"
["captcha_question_hash"] => string(40) "*******"
["agree"] => string(1) "1"
["_xfToken"] => string(8) "********"
["reg_key"] => string(32) "*******"
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.