1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Javascript error when moving smileys

Discussion in 'Troubleshooting and Problems' started by phsycical, Dec 24, 2015.

  1. phsycical

    phsycical Member

    I receive an error when trying to move smileys. It didn't happen a few days ago but suddenly started recently.

    [​IMG]

    Add ons I have are:

    CTA Table BB Code 1.1.1

    sonnb - Profanity Filter 1.0.4

    TaigaChat Pro 1.4.3

    vBSEO Likes Importer 1.0

    [8wayRun.Com] XenAtendo (Events) 1.5.0

    [8wayRun.Com] XenPorta (Portal) 1.6.0

    Can anyone help?
     
    Last edited: Dec 24, 2015
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Open the browser inspector and check the console tab for the error details.
     
  3. Mike

    Mike XenForo Developer Staff Member

    Roughly how many smilies do you have? There may be some server configuration limits being hit here.
     
  4. phsycical

    phsycical Member

    [​IMG]
    Am I in the right section? I'm not really sure how to interpret this information or where to go.

    I went to the export tab to check, it looks like I have 515. Now that you mention it I recently went over 500, that might have something to do with it. Anyway to verify if this is the problem and if so increase this limit?
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Can you navigate to /admin.php?tools/phpinfo and search for max_input_vars and post what that value is set to?
     
  6. phsycical

    phsycical Member

    [​IMG]

    Looks like it's 1,000.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Can you try increasing it 2,000 to see if that changes anything.
     
  8. phsycical

    phsycical Member

    Maybe an obvious question but how do I do that? I searched for max_input_vars in php.ini and couldn't find it. So I manually added the line

    max_input_vars = 3000
    but it didn't update in that admin.php?tools/phpinfo section.
     
  9. Tracy Perry

    Tracy Perry Well-Known Member

    Depends on whether you are on a shared hosting or VPS/dedi.
    If VPS/Dedi, then you can check your php info page for your Configuration File (php.ini) Path and the Loaded configuration file.
    Screen Shot 2015-12-24 at 11.58.25 AM.png

    After adding it, you need to restart your php processor - and if using Apache probably Apache.

    and this topic from 2014 details the same issue back then
    https://xenforo.com/community/threads/1-3-2-smilie-import-problem.75002/#post-771926
     
  10. phsycical

    phsycical Member

  11. Tracy Perry

    Tracy Perry Well-Known Member

    Then your hosting provider should have instructions somewhere on how to add to the default php.ini. See if they have a FAQ page. It may also be one of those variables that you cannot change since you are on shared.
     
  12. Tracy Perry

    Tracy Perry Well-Known Member

    Try adding - in your .htaccess
    max_input_vars = 3000

    If that doesn't work, try creating a php.ini in your root directory of your web server and put it in there.
     
  13. phsycical

    phsycical Member

    Seemed to cause my site to stop functioning when I added this in, not sure if I added it in the correct place though. Is there a particular place I'm supposed to add it?
    There's already a php.ini file in my root directory, I tried adding max_input_vars = 3000 to it but it didn't seem to affect anything.


    I contacted my host's support:
    10:06:15 AM
    Jacob
    Thank you for contacting Live Support! My name is Jacob and I will be assisting you today. Please allow me a few minutes to review your initial question and gather any relevant account data.
    10:06:20 AM
    Jacob
    Hello, how are you today?
    10:06:34 AM
    Jacob
    Review the article below to assist you with your request.

    wordpress.org/support/topic/increase-max_input_vars-value-and-htaccess
    10:06:38 AM
    Me
    Hi, I'm doing fine
    10:07:24 AM
    Me
    I just put that line in my htaccess?
    10:07:41 AM
    Me
    Not php.ini?
    10:09:51 AM
    Me
    FYI this isn't for wordpress, don't know if it'd be the same on both
    10:13:08 AM
    Jacob
    I do apologize, as this would be Site Customization, this would technically be out of the scope of our support, but how was the site built, and I will look up some useful information for you.
    10:14:32 AM
    Me
    ah, okay. I was using software called "Xenforo", I was receiving error messages with it. Their support told me edit the max_input_vars php setting, but I couldn't find this setting in my php.ini file where I expected it
    10:14:43 AM
    Me
    It's set to 1,000 by default
    10:15:53 AM
    Jacob
    Yes as default I believe this is the standard setting. Please allow me one moment to look up some information, thank you for your patience.
    10:15:53 AM
    Me
    It isn't in the php settings listed as "cannot be changed" support.hostgator.com/articles/cpanel/php-settings-that-cannot-be-changed so I thought there'd be some way to change it
    10:18:55 AM
    Jacob
    Thank you for this information.
    10:27:29 AM
    Jacob
    I do apologize for the wait.
    10:27:46 AM
    Jacob
    I was not able to find any conclusive information to assist you with your request.
    10:28:50 AM
    Me
    So, what happens now? Is there another support representative who might know more about this?
    10:28:51 AM
    Me
    10:35:32 AM
    Jacob
    I do apologize this would generally be out of the scope of support, so I can not say if someone else will know this, but I can tell you that you should be able to make a php.ini file, and code it with a default php coding and add in this record.
    10:35:49 AM
    Jacob
    Review the article below to assist you with your request.

    |support.hostgator.com/articles/articles/specialized-help/technical/what-is-php-ini
    10:39:31 AM
    Jacob
    Just checking to ensure you are still there?
    10:39:49 AM
    Me
    Yup
    10:39:53 AM
    Me
    Reading the linked page
    10:42:33 AM
    Me
    Okay guess that's all then thanks

    It doesn't sound like it's prohibited from this conversation but he didn't really seem to know exactly how to edit it either.
     
  14. Tracy Perry

    Tracy Perry Well-Known Member

    So, you have a php.ini file in your /public_html location (or whatever the root is for your hostgator account).
    And in it, you've placed
    Code:
    max_input_vars = 3000
    and it's not working - correct?
     
  15. phsycical

    phsycical Member

    Correct, unless there's some delay or something. I checked my admin.php?tools/phpinfo page and it still looks like it was set to 1,000 and the error when moving smileys was still occurring.
     
  16. Tracy Perry

    Tracy Perry Well-Known Member

    place your current php.ini that you have in a convo to me.. I'll look at it and see if I can figure out why it's not working - it should be as that is the supported HostGator process to do it. You must also have specific code in your .htaccess apparently to allow it.
    I direct your attention to http://support.hostgator.com/articles/specialized-help/technical/what-is-php-ini
     
  17. Tracy Perry

    Tracy Perry Well-Known Member

    Follow HostGators instructions
    place php.ini in /home directory with options enabled
    modify the root /public_html/.htaccess with the following code
    Code:
    <IfModule mod_suphp.c>
    suPHP_ConfigPath /home/username
    <Files php.ini>
    order allow,deny
    deny from all
    </Files>
    </IfModule>
    (modified of course to reflect the correct username)
    And guess what.. it not work. Server gives a 500 error.

    Did I mention I don't like HostGator (this was one of the reasons I got off them 3+ years ago).
     

Share This Page