We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Users can't upload their avatars | Forum

Ryan Schostag
Ryan Schostag Jul 2 '14
My users can't upload avatars. All I was getting is "Please choose image file" as the error. We are using 1.6. I can't find any forum or discussion online to fix this issue. Now it's not giving me an error message; it's just not uploading. I haven't changed any code to attempt to fix this yet because I don't know where to begin. Please advise.
ross Team
ross Jul 2 '14
Seems like you've done some custom code modifications and there are some syntax errors


Ryan Schostag
Ryan Schostag Jul 3 '14
I didn't modify any code. I uploaded an image to the background.
Ryan Schostag
Ryan Schostag Jul 3 '14
If you know what code to change, please let me know, Ross. I saw a forum with this issue dated 2011 and it didn't provide an answer. Thanks.
ross Team
ross Jul 3 '14
Can you switch back to the default theme and try to upload the avatar?
Ryan Schostag
Ryan Schostag Jul 3 '14
I did. It is still giving me the error, "Please choose image file" when I chose a .jpg file.
The Forum post is edited by Ryan Schostag Jul 3 '14
Attachments:
  Screenshot_2014-07-03-09-50-05.png (75.85Kb)
ross Team
ross Jul 3 '14
I already noted, that there were some changes in the code, here's the third-party javascript code you inserted which breaks avatar uploading:



 </div><script type="text/javascript">$(window).scroll(function() {var final = "input[class='ow_newsfeed_view_more ow_ic_down_arrow']";jQuery( ".ow_newsfeed_view_more_c .ow_button" ).css( "background", "transparent" );jQuery( ".ow_newsfeed_view_more_c .ow_button" ).css( "border", "none" );jQuery( final ).css( "font-size", "0" );jQuery( final ).css( "background", "transparent" );if($(window).scrollTop() + $(window).height() > $(document).height() - && $( final ).is(":visible")) {$( final ).click();$( "#feed1 .ow_newsfeed_view_more_c" ).append('<img src="http://posdit.com/...re/image/loading.gif">' );}if($(window).scrollTop() + $(window).height() < $(document).height() - || $( final ).is(":hidden")) {$( "#feed1 .ow_newsfeed_view_more_c img" ).remove();}});</script><script type="text/javascript">$(document).ready(function(){ BackToTop();
BackToTop({text : '',autoShow :,timeEffect :,effectScroll :'linear',appearMethod :''});});</script><script type="text/javascript">$('a').each(function() {var a = new RegExp('/' + window.location.host + '/'); if(!a.test(this.href) && this.href !='javascript://' ) {$(this).click(function(event) {event.preventDefault();event.stopPropagation();window.open(this.href, '_blank');});}});</script><script type="text/javascript">var lochash = document.location.hash.substr(1);if ( lochash ){var photo_id = lochash.substr(lochash.indexOf("view-photo=")).split("&")[0].split("=")[1];if ( photo_id ){document.location = "http:\/\/posdit.com\/photo\/view\/" + photo_id;}}


you can compare the source code on demo oxwall website and yours and see the difference

The Forum post is edited by ross Jul 3 '14
Ryan Schostag
Ryan Schostag Jul 4 '14
I found the page with the beginning of this script. But, the same page does not have "document.location = "http:\/\/posdit.com\/photo\/view\/" + photo_id;" and other parts of the above. I'd like to PM you and give you FTP access for this and my other issue with ads. I uninstalled and reinstalled the Advertisement plugin. The results are still the same.
ross Team
ross Jul 4 '14
Remove this third-party javascript code first, then I'll proceed