News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Insert Quote error, quick edit error, shows loading for ever

Started by el, June 30, 2010, 06:43:07 PM

Previous topic - Next topic

el

SMF 1.1.11

Everything was smooth until without changing anything at all:

"Quote" and "Insert Quote" don't work (show "loading" for ever)
Quick edit (the in post button) doesn't work (shows "loading" for ever)
Preview doesn't work (shows "Fetching preview" for ever)


I tried Optimize database through SMF, nothing changed.
I tried Optimize database through SQL, nothing changed.
I tried Find errors and repair through SMF, nothing changed.
I tried Find errors through SQL, nothing changed.


This is really annoying.. any guidance would be highly appreciated.

mirahalo

well I had the same problem a time ago,   I solved by properly encoding all my languages files to utf8 without BOM. but that of course only help if you're using a utf8 language.    thats the only advice I can give you ;)

Paul_Pauline

On the face of it that seems to be server problems.

Did you try optimising your database tables in your hosts control panel.
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

el

Thank you for your quick replies!

Quote from: 130860 on June 30, 2010, 06:46:20 PM
well I had the same problem a time ago,   I solved by properly encoding all my languages files to utf8 without BOM. but that of course only help if you're using a utf8 language.    thats the only advice I can give you ;)

I do use UTF8 language. How do I perform their encoding to  utf8 without BOM?

However, I can't understand how did this happen. What changed and produced this problem? Why didn't it show up earlier? The forum is 3 years old and fully updated.


Quote from: Paul_Pauline on June 30, 2010, 06:49:57 PM
On the face of it that seems to be server problems.

Did you try optimising your database tables in your hosts control panel.
I tried through phpMyAdmin. I suppose this is what you mean.



mirahalo

I was thinking the very same, how can this be related... well somehow it is,   you can encoding files with a code editor such as notepad++

el

Quote from: 130860 on June 30, 2010, 07:03:57 PM
I was thinking the very same, how can this be related... well somehow it is,   you can encoding files with a code editor such as notepad++
Thanx for the tip, I'll try it.

el

by the way, as I see, this isn't smf versions' specific problem:

link for same problem on 1.3 -> problem found on post.php and solved.
link for same problem on 1.5
link for same problem on 1.6
link for same problem on 1.8 -> problem found on google's analytics code.
link for same problem on 1.10 -> xml.template.php was 0bytes
link for same problem on 2.x
link for same problem on ?.? -> problem found on index.php, solution not mentioned.
link for same problem on ?.? -> problem focused on spaces existences before <?php and after ?>

mirahalo

yes and its a popular one ;)  I had it on my 2.0 RC3 forum,  hope that helps to solve the issue.

el

Well in my case, I found the problem on my main forum/index.php where a huge malicious code of 9792 lines was planted by I-don't-know-who, with a really huge list of links for buying pills online...

the malicious code I found is the following:



<html>
<head>
</head>
<body>
<div id='ololo' style="display:none">
<a href="http://forums.poz.com/pills/index.html">viagra without prescription</a>
<a href="http://forums.poz.com/pills/free-viagra-sample.html">free viagra sample</a>
<a href="http://forums.poz.com/pills/viagra-for-sale.html">viagra for sale</a>
<a href="http://forums.poz.com/pills/purchase-viagra-online.html">purchase viagra online</a>
<a href="http://forums.poz.com/pills/buy-cheap-viagra-online-uk.html">buy cheap viagra online uk</a>
<a href="http://forums.poz.com/pills/cheap-viagra-tablets.html">cheap viagra tablets</a>
<a href="http://forums.poz.com/pills/herbal-viagra.html">herbal viagra</a>
<a href="http://forums.poz.com/pills/viagra-6-free-samples.html">viagra 6 free samples</a>
.
.
.
.
. (a total of 9792 lines)

</div>
</body>
</html>





I had to check one by one all my php files to find this out.
Realy painful. File_check.php helped a little bit though.

Regarding the topic's title, the problem is now solved. Quote, Preview and Quick edit work fine.
Confronting my solution to the other's problems, it seems that whenever something goes wrong in SMF, one of the first thing that comes up on the frontend is the quote and preview problem. So I'll keep it in mind for my future problems.







However, who planted this code in my files? I had the same problem prior upgrading to 1.1.11 (I had 1.1.2. Yes, really old) and I thought that not having made the updates for 3 years, I lacked of security updates. Now that I have the latest version of stable SMF, I'm still facing this malicious code thing.

How can I be protected?
What should I do?

el

Quote from: el on July 03, 2010, 05:20:07 AM
However, who planted this code in my files? I had the same problem prior upgrading to 1.1.11 (I had 1.1.2. Yes, really old) and I thought that not having made the updates for 3 years, I lacked of security updates. Now that I have the latest version of stable SMF, I'm still facing this malicious code thing.

How can I be protected?
What should I do?

I opened a new topic here: http://www.simplemachines.org/community/index.php?topic=389107.0

Advertisement: