vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Slashes automatically appearing before apostrophes (https://vborg.vbsupport.ru/showthread.php?t=316904)

JohnScag 01-25-2015 01:21 AM

Slashes automatically appearing before apostrophes
 
I don't know what this started, but on my forum www.grindfactor.com all the sudden now whenever you type a word with an apostrophe, it comes out with like 3 back slashes before it.

Can someone please help?


Thanks.

ozzy47 01-25-2015 01:44 AM

Ok lets do this, disable plugins via the includes/config.php file.

To do that open your includes/config.php file and below <?php add the following.

PHP Code:

define('DISABLE_HOOKS'true); 

So it looks like this:
PHP Code:

<?php
define
('DISABLE_HOOKS'true);
/*=================================================  =====================*\
|| ##################################################  ################## ||
|| # vBulletin 4.2.2

Use a editor like notepad++ to edit any files, don't use Notepad or Wordpad.

If that fixes the issue enable plugins again by adding // before the line you added, then navigate to ACP --> Plugins & Products --> Manage Products and disable one mod at a time until you find the one causing the issue.

Once you find the culprit, post in that mods thread what the issue is, and maybe someone in that thread can help. :)

JohnScag 01-25-2015 06:53 AM

I'm not comfortable messing around with any of the config files and stuff I don't really know what Im doing. But I just straight tried disabling one plugin at a time to see if any were causing the problem and it didn't matter. So if it's not a plugin causing the problem what else could it be?

HM666 01-25-2015 08:14 AM

Quote:

Originally Posted by JohnScag (Post 2534429)
I'm not comfortable messing around with any of the config files and stuff I don't really know what Im doing. But I just straight tried disabling one plugin at a time to see if any were causing the problem and it didn't matter. So if it's not a plugin causing the problem what else could it be?

It is more and likely a mod that is installed on your forum. Globally disabling the plugins sometimes works better than doing it one by one for some reason. If you are not comfy with that then perhaps you might want to hire someone to help you fix it in the Paid Requests section.

A couple of questions...

1. Has your host made any changes recently to your server or hosting package?
2. What was the last thing you did before this started happening on your forum? Did you install something or make a change etc?

ozzy47 01-25-2015 09:46 AM

What vB version and PHP version are you running?

Dave 01-25-2015 10:33 AM

I'm not sure how vBulletin handles it, but seems like magicquotes are enabled on your PHP installation.

nerbert 01-25-2015 12:15 PM

^ function vB_Input_Cleaner(), includes/class-core.php, line 1921 seems to deal with that, at least for user inputs ($_REQUEST, etc)

That this is triple escaped suggests preg_quote() is used somewhere. Do you have any complicated custom bbcodes installed?

Lynne 01-25-2015 05:17 PM

I just picked a random thread which was started a couple of days ago and I am not seeing this problem with apostophes until January 24. http://www.grindfactor.com/Forum/sho...3400#post23400 So, I would suggest you ask your host what they changed on the site around then. then show them the problem they have caused and they should be able to fix it.

JohnScag 01-25-2015 09:07 PM

Quote:

Originally Posted by ozzy47 (Post 2534444)
What vB version and PHP version are you running?

VB version 4.2.2 and PHP 5.4.35


And I've had people trying to integrate the site with wordpress maybe that had something to do with it. I don't know. The guy who I hired to do something ended up being horrible so I let him go but he claims he didn't' do anything to the code but it does match up to the 24th when he started.

I have another guy who usually helps but he's busy with a new kid.

Then one of my mods said he started using the site from his laptop and it wasn't doing it anymore for him specifically. But it's still doing it now for everyone else. I just tested it again and same thing.

Can any of you take a look under the hood for me? How much would be an acceptable price to charge to have somebody from here look into this for me?

HM666 01-25-2015 11:25 PM

Quote:

Originally Posted by JohnScag (Post 2534564)
VB version 4.2.2 and PHP 5.4.35


And I've had people trying to integrate the site with wordpress maybe that had something to do with it. I don't know. The guy who I hired to do something ended up being horrible so I let him go but he claims he didn't' do anything to the code but it does match up to the 24th when he started.

I have another guy who usually helps but he's busy with a new kid.

Then one of my mods said he started using the site from his laptop and it wasn't doing it anymore for him specifically. But it's still doing it now for everyone else. I just tested it again and same thing.

Can any of you take a look under the hood for me? How much would be an acceptable price to charge to have somebody from here look into this for me?

Price depends on the person you hire for obvious reasons you get what you pay for. If you pay someone a low hourly fee be prepared to get ripped off or get someone who does not know what the heck they are doing.

How exactly were they trying to integrate Wordpress into the site? Were they trying to code it themselves? Or were they trying to install an add-on for it? There are actually a couple of add-ons that can be installed to work for Wordpress.

nerbert 01-25-2015 11:51 PM

Have you tried

Maintenance > Diagnostics > Suspect File Versions

to test for edited files?

Lynne 01-26-2015 05:31 PM

Or look at Maintenance > View PHP Info > what is the Build Date?


All times are GMT. The time now is 07:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01904 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete