I get the following code show up on the 'photo rater page'
function bx_scroll () { var iTop = parseInt($(".rateObject").parents().filter('.boxContent').offset().top); $($.browser.safari ? "body" : "html,body").scrollTop(iTop - 10); } $(document).ready(function() { bx_scroll(); });
Please see attached screen shot for visual.
|
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
I wonder why this was never addressed?
I have the same problem now that its being used on one of my sites.
ManOfTeal.COM a Proud UNA site, six years running strong! |
It is coming from here.
/modules/boonex/photos/templates/base/rate_object_file.html
<script type="text/javascript">function bx_scroll () { var iTop = parseInt($(".rateObject").parents().filter('.boxContent').offset().top); $($.browser.safari ? "body" : "html,body").scrollTop(iTop - 10);}$(document).ready(function() { bx_scroll();});</script><div class="fileBody" style="width:__infoWidth__px";><img src="__fileBody__" class="bx-def-round-corners bx-def-shadow;"></div>
ManOfTeal.COM a Proud UNA site, six years running strong! |
AlexT, you answered some other questions; why is this one not addressed?
I cannot see it on the demo.boonex.com site but others have the same error.
I have tried with different templates with the same results.
This only happens on one server.
Can anyone else please check their photo "Rater" please.
ManOfTeal.COM a Proud UNA site, six years running strong! |
I tested on my test site, Nginx, PHP 5.4.27, SQL Community Edition 6 something; saw no problems at all, rating works. Geeks, making the world a better place |
Can I have link to the site with the problem please ? Rules → http://www.boonex.com/terms |
RE
Can I have link to the site with the problem please ?
PM sent.
ManOfTeal.COM a Proud UNA site, six years running strong! |
AlexT, you answered some other questions; why is this one not addressed?
I cannot see it on the demo.boonex.com site but others have the same error.
I have tried with different templates with the same results.
This only happens on one server.
Can anyone else please check their photo "Rater" please.
This is just a shot in the dark, but on the server your having problems with. Could you check phpinfo and see what the values for these php setting are.
magic_quotes_gpc magic_quotes_runtime magic_quotes_sybase
https://www.deanbassett.com |
RE
Could you check phpinfo and see what the values for these php setting are.
Going there now to look, thanks Deano.
ManOfTeal.COM a Proud UNA site, six years running strong! |
RE
magic_quotes_gpc
- magic_quotes_gpc = Off - OK
Can't find the others anywhere.
Are they in the php.ini?
ManOfTeal.COM a Proud UNA site, six years running strong! |
They would be. But look in the phpinfo tab. Not in the audit tab. Dolphin assumes the others will be off by default so does not list them.
And inc/inc.header.inc actually forces the other two off. So all of them should be off.
And they most likely are. As i said. It was a shot in the dark. https://www.deanbassett.com |
It looks like some template file is broken, the code on the page looks like this:
<img src="<script type="text/javascript">
as the result the open <script> tag is not working and JS code is shown as it is.
Switching to the UNI template doesn't help, looks like BASE files were modified.
I would recommend to reupload files for /templates/base/ and /templates/templ_uni/ folders, but it will most probably damage your current design!
Rules → http://www.boonex.com/terms |
RE
I would recommend to reupload files for /templates/base/ and /templates/templ_uni/ folders, but it will most probably damage your current design!
I did this, and still the same.
Cache is off, and cleared.
ManOfTeal.COM a Proud UNA site, six years running strong! |
I would recommend to reupload files for /templates/base/ and /templates/templ_uni/ folders, but it will most probably damage your current design!
I did this, and still the same.
Cache is off, and cleared.
It maybe that the modification is in Photos module, then its files should be re-uploaded as well.
Rules → http://www.boonex.com/terms |
RE
It maybe that the modification is in Photos module, then its files should be re-uploaded as well.
Thanks Alex, I will try that too.
ManOfTeal.COM a Proud UNA site, six years running strong! |
It looks like some template file is broken, the code on the page looks like this:
<img src="<script type="text/javascript">
as the result the open <script> tag is not working and JS code is shown as it is.
Switching to the UNI template doesn't help, looks like BASE files were modified.
I would recommend to reupload files for /templates/base/ and /templates/templ_uni/ folders, but it will most probably damage your current design!
AlexT, I did all the recommended replacements.
Nothing has changed.
Looking at the file site/templates/base/rate_object_file.html
<script type="text/javascript">
function bx_scroll () {
var iTop = parseInt($(".rateObject").parents().filter('.boxContent').offset().top);
$($.browser.safari ? "body" : "html,body").scrollTop(iTop - 10);
}
$(document).ready(function() {
bx_scroll();
});
</script>
<div class="fileBody" style="width:__infoWidth__px;">
</div>
I have also done the suggested replacing photo module.
Somehow we(OP) are getting this one problem.
I also removed all extra templates and just using UNI at default.
ManOfTeal.COM a Proud UNA site, six years running strong! |
Mind if i take a look?
You can send access info to me in a PM. I am curious about it. I am not getting that problem, so i don't understand why it is happening. Like to see if i can figure out why. https://www.deanbassett.com |
RE
Mind if i take a look?
You can send access info to me in a PM. I am curious about it. I am not getting that problem, so i don't understand why it is happening. Like to see if i can figure out why.
Sending, thanks Deano.
ManOfTeal.COM a Proud UNA site, six years running strong! |
Ok, got one problem fixed. The file rate_object.html is not suppose to be in the photo modules template folder. Only rate_object_file.html is to be there. After that was removed, the error went away. However there is still a JS conflict somewhere i am trying to track down because the rater does not actually work, but it is not throwing any errors.
So i will have to go through the template folders more thoroughly and make sure only the files that belong in those folders are there and the ones that are suppose to be there are of the proper version.
This will take some time. https://www.deanbassett.com |
RE
However there is still a JS conflict somewhere i am trying to track down because the rater does not actually work, but it is not throwing any errors.
Sent a PM.
The rater is now working and the code no longer shows.
The OP, I do not know and I have never seen the site that they have.
I'm clueless as to why the file would have been there, curious as to why it would do that.
ManOfTeal.COM a Proud UNA site, six years running strong! |
I'm clueless as to why the file would have been there, curious as to why it would do that.
It may have been a leftover from a older version. Some upgrade instructions contain a list of files that are to be manually removed. A few upgrades were like that. That would be the only reason i could think of as to why it would have been there.
I am guessing the OP has the same issue. The date of the file was from 2012, so it was a 3 years old file. My only guess is a leftover from a upgrade that was not removed.
As for why it would do that. It's most likley because there is a file with the same name in the base template folder. I believe the file rate_object.html from the base folder and the file rate_object_file.html from the modules folder are used together. Because the modules folder has priority over modules template files, it was using the one in the modules folder instead of the one in the base folder which was incorrect.
https://www.deanbassett.com |
RE
I am guessing the OP has the same issue. The date of the file was from 2012, so it was a 3 years old file. My only guess is a leftover from a upgrade that was not removed
I bet that was it, perhaps when we went to 7.1.x.
ManOfTeal.COM a Proud UNA site, six years running strong! |