Page 1 of 2 1 2 LastLast
Results 1 to 15 of 23

Ajax quick edit into profiles doesn't work

This is a discussion on Ajax quick edit into profiles doesn't work within the Bug Reporting forums, part of the vBSEO SEO Plugin category; Hi, i run vBulletin 3.8.1 and vBSEO 3.2.0. Into their profiles users can edit their informations with Ajax in "About ...

  1. #1
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times

    Ajax quick edit into profiles doesn't work

    Hi, i run vBulletin 3.8.1 and vBSEO 3.2.0.
    Into their profiles users can edit their informations with Ajax in "About Me" tab. But with vBSEO this doesn't work.

    I have a JS error. Disabling vBSEO it works good.

    Code:
    Security problem: contents in http://users.mysite.com/username-192660/ can't upload informations from http://forum.mysite.com/ajax.php.
    Code:
    Error: [Exception... "Access to restricted URI denied"  code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)"  location: "http://forum.mysite.com/clientscript...n-min.js?v=381 Line: 7"]
    File: http://forum.mysite.com/clientscript...n-min.js?v=381
    Line: 7
    Last edited by Fabikus; 03-11-2009 at 08:21 AM.

  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times
    I uploaded this already but i still have the trouble.
    I can't quick edit my profile, box don't appear and i have a JS error.

    I use: http://users.myforum.com/username-id/ for usernames and i have my form into http://forum.myforum.com/. Maybe is this the reason?
    Last edited by Fabikus; 03-11-2009 at 08:21 AM.

  4. #4
    Senior Member woostar's Avatar
    Real Name
    woostar
    Join Date
    Apr 2007
    Posts
    786
    Liked
    5 times
    Quote Originally Posted by Fabikus View Post
    I uploaded this already but i still have the trouble.
    I can't quick edit my profile, box don't appear and i have a JS error.

    I use: http://users.myforum.com/username-id/ for usernames and i have my form into http://forum.myforum.com/. Maybe is this the reason?
    do you use the YSlow mod from vborg?

    Something similar happened to me... just needed to clear my cache.
    2011 Average: 1 post every 5 seconds... 24/7

  5. #5
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times
    Quote Originally Posted by woostar View Post
    do you use the YSlow mod from vborg?

    Something similar happened to me... just needed to clear my cache.
    No i don't use it. This happens to all my users not only to me and it works disabling vbseo!

  6. #6
    Member 1QuickSI's Avatar
    Real Name
    Steven
    Join Date
    Jan 2006
    Location
    CT
    Posts
    87
    Liked
    3 times
    Try diableing ZLIB in your php.ini file.

  7. #7
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times
    It's not ZLIB.
    It's bad to see this was not fixed in vBSEO 3.3.0.
    If i disable vBSEO it works good!

  8. #8
    Senior Member MissKalunji's Avatar
    Real Name
    Mj
    Join Date
    Mar 2006
    Location
    Canada
    Posts
    207
    Liked
    2 times
    i don't believe tha thas to do with vbseo...it works fine for me...

    Perhaps wrong settings in vbseo?

  9. #9
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times
    I understand what is the trouble!
    I use http://users.mysite.com/username/ for profiles as mirror of http://forum.mysite.com/

    This cause Ajax issue, how can i fix that? I think i should change some relative url to absolute, but what?

  10. #10
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    Check your General Settings Post Referrer Whitelist
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  11. #11
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times
    I have that in Post Referrer Whitelist

    Code:
    .mysite.com
    *.mysite.com
    I already tried to put users.mysite.com but it's the same. I think that the trouble is that Ajax needs always relative urls and it's impossible to do that using http://users.mysite.com/nickname/ for profiles ... :(

  12. #12
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    The issieu is related to using subdomain for member profiles, ajax security restricts data requests to the same subdomain only.

    What is your .htaccess file content in users subdomain?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  13. #13
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times
    Users subdomain have not an .htaccess because it's a mirror of forum subdomain (and it use his .htaccess).
    Here is .htaccess of forum subdomain

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^users.mysite.com
    RewriteRule ^$ http://forum.mysite.com/ [L,R=301]
    RewriteCond %{HTTP_HOST} ^users.mysite.com
    RewriteRule ^(.+)$ vbseo.php?vbseourl=http://users.mysite.com/$1&%{QUERY_STRING} [L]
    RewriteCond %{HTTP_HOST} ^www\.users.mysite\.com$
    RewriteRule ^(.*)$ http://users.mysite.com/$1 [L,R=301]
     
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /
    RewriteCond %{HTTP_HOST} ^www\.forum.mysite\.com$
    RewriteRule ^(.*)$ http://forum.mysite.com/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} ^www\.mysite\.com$
    RewriteRule ^(.*)$ http://forum.mysite.com/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} ^mysite\.com$
    RewriteRule ^(.*)$ http://forum.mysite.com/$1 [L,R=301]
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    And here is the httpd configuration to let it see my users subdomains as mirror of forum one:

    Code:
    <VirtualHost my ip:80>
     
            ServerName www.users.mysite.com
            ServerAlias www.users.mysite.com users.mysite.com
            ServerAdmin webmaster@mysite.com
            DocumentRoot /home/admin/domains/mysite.com/public_html/forum
            ScriptAlias /cgi-bin/ /home/admin/domains/mysite.com/public_html/forum/cgi-bin/
            UseCanonicalName OFF
            SuexecUserGroup admin admin
            CustomLog /var/log/httpd/domains/mysite.com.users.bytes bytes
            CustomLog /var/log/httpd/domains/mysite.com.users.log combined
            ErrorLog /var/log/httpd/domains/mysite.com.users.error.log
            <Directory /home/fabiofrd/domains/mysite.com/public_html/forum>
                    Options +Includes -Indexes
                    php_admin_flag engine ON
                    <IfModule !mod_php6.c>
                            php_admin_flag safe_mode OFF
                    </IfModule>
                    php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f admin@mysite.com'
     
                    php_admin_value open_basedir /home/admin/:/tmp:/usr/local/lib/php/
     
            </Directory>
     
    </VirtualHost>
    All works except Ajax into profiles.

  14. #14
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    In order to get it working you will have to modify javascript to send ajax request to current subdomain instead of forums URL and tell vBSEO to skip this requets (not tested but hopefully will work):

    1. modify .htaccess file:
    find:
    Code:
    RewriteCond %{HTTP_HOST} ^users.mysite.com
    add below:
    Code:
    RewriteCond %{REQUEST_URI} !(ajax|vbseo)\.php
    2. modify clientscript/vbulletin_profilefield_edit.js file:
    FIND:
    HTML Code:
    "ajax.php"
    change to:
    HTML Code:
    location.protocol + '//' + location.host + "/ajax.php"
    Last edited by Oleg Ignatiuk; 03-12-2009 at 07:43 AM.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  15. #15
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times
    Thank you very much!
    Now i don't receive anymore that error but when i click on a button to edit profile fields with ajax, it says:

    "The server was unable to respond on time. Go back and try again."

    And it doesn't edit them.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Quick edit bug still there...
    By dutchbb in forum Bug Reporting
    Replies: 14
    Last Post: 08-21-2006, 10:57 AM
  2. problem with ajax edit thread title
    By croportal in forum Troubleshooting
    Replies: 6
    Last Post: 02-16-2006, 06:44 PM
  3. Bug... Smilies not showing on Ajax Quick Edit
    By rob in forum Bug Reporting
    Replies: 9
    Last Post: 11-12-2005, 05:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •