News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Can't quick modify or quote

Started by trekkie2444, March 22, 2009, 09:24:38 PM

Previous topic - Next topic

SlammedDime

if it's ssi_examples, you can ignore that one...  it would best for you to start your own topic though.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

andy40

hi i just used this and it says some File does not end with ?> but when i check they do?

mikungfu

Quote from: andy40 on May 12, 2009, 07:54:42 AM
hi i just used this and it says some File does not end with ?> but when i check they do?

Trust me: It doesn't, but what comes after ?> may not be visible. It can be a "space" or "enter", which looks blank if nothing was typed after that. Simply click and drag after ?> and see if the cursor is blinking in the line below or if there is a space...

JBlaze

@ OP: You can use this tool to fix the spaces in your files as well. It was created to fix the krisbarteo hack, but can also solve this problem as it searches for spaces and fixes them.

Try it out and let us know :)
Jason Clemons
Former Team Member 2009 - 2012

berlyn3014

I am having the exact same problem as trekkie

i started a topic a few days ago but this seems llike just what i need.

could you please look and help me out too?

http://www.latenightsports.smfnew.com/index.php [nofollow]

Aleksi "Lex" Kilpinen

#25
Hi trekkie2444, did you try the script JBlaze provided? Did it help?

Quote from: JBlaze on June 01, 2009, 02:47:41 AM
@ OP: You can use this tool to fix the spaces in your files as well. It was created to fix the krisbarteo hack, but can also solve this problem as it searches for spaces and fixes them.

Try it out and let us know :)

berlyn3014

Quote from: berlyn3014 on June 01, 2009, 03:53:33 PM
i started a topic a few days ago but this seems llike just what i need.

If you have made a topic of your own, I'm sure someone will get to you there ;)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

ne-yola

I am having thesame props, I have run the test and there are no errors but preview and insertquotes aint working

JimM

@ne-yola - you have run the filecheck script and it reported nothing?  It is usually best to start your own topic about these issues as this topic may have been resolved just not marked. 
Jim "JimM" Moore
Former Support Specialist

CoyoteUgly

#28
We had a number of zero-byte files for some reason in the various directories.
Most of them had to do with languages like:

    *  /nfs/new/madc/forum/Themes/default/languages/index.german.php
          o File does not begin with <?php
          o File does not end with ?>




So, I added these lines to the _checkFile($filepath) function in the file_check.php script.
I inserted them right after errors array was defined.
So, it is checking the file size before it does any reading.

$sizeMe = filesize($filepath);
                if ( false === $sizeMe )
                   $errors[] = 'File size = ';
                if ( 0 === $sizeMe )
                   $errors[] = 'Zero-byte file';


It seems to work ok at least it report "Zero-byte file" along with the other two messages I was seeing.

Quote*  /nfs/new/madc/forum/Themes/default/languages/index.german.php
          o Zero-byte file
          o File does not begin with <?php
          o File does not end with ?>


I also just tried having it do a "return;" instead of adding a "Zero-byte" message to the errors array. This is nicer as the file isn't even shown on the list, thus making the list smaller, as I edit the files - one-by-one...

On a side-note, should I just delete all of the zero-byte files?





JimM

Yep, if they are zero-bytes, you obviously don't need them.
Jim "JimM" Moore
Former Support Specialist

Advertisement: