News:

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

Main Menu

Fetching preview... all the time - problem with ANSI / UTF

Started by ExSpirit, August 18, 2007, 03:54:15 PM

Previous topic - Next topic

ExSpirit

I noticed that I cant preview posts - I get 'Fetching preview...' all the time. I searched around on forum and found some solutions, but those didn't work for me. Then I tried things on my own and found out that if I save my index.language.php from UTF-8 (I have to use this) to ANSI it works. Why is this happening, what can I do to make UTF-8 having preview too?


ExSpirit

Anyone using UTF-8 and has no problems with this? I had the same problem a while ago, but I thought that it was because of Joomla bridge, but looks like it wasn't.





ExSpirit

I also have some problems with "log-in for ever" - it's not forever, might because of this UTF-8 too?

Sarge


    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

ExSpirit

Fantastico? Not that I know of.

I have hosting on godaddy, I uploaded SMF via FTP.

Sarge

Does the UTF-8 problem appear when you open the forum directly (in unbridged mode)? For example, if your Joomla! site is at www.mysite.com and your actual forum is at www.mysite.com/forum, visit the latter address.

Can you create and post here the username and password for a regular member account, for testing purposes?

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

ExSpirit

I only use forum now, I don't use Joomla anymore.

I sent you l/p to PM of newly created user.


SleePy

Is this issue solved or do you still require assistance?

Are you able to see the access logs to see if the request is making it to the server or not from the ajax?
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

ExSpirit

I still need help with this .

Access to logs? To admin panel/Forum Error Log? I just checked that page and I have 4276 pages of errors (make in 1-2 weeks)... Is that normal?

greyknight17

Can you post a link to your forum with a regular test account?

No, that's definitely not normal. Are all those error messages in your SMF error log the same? Post a few of those errors here.

ExSpirit

I checked error logs now again and there's 1816 pages (so that's 36320 errors) - that is since August 28.

Here are some of errors:

Member1 
5eb087aa9da8877554a3d809aec09812
http://MYWEBSITE/forum/index.php?action=viewmembers
8: Use of undefined constant Pravila - assumed 'Pravila'
File: /home/content/g/o/l/username/html/forum/Themes/default/ManageMembers.template.php (eval?)
Line: 557



Guest
88a91a7476bde4d4bb8893076ca4008c
http://MYWEBSITE/forum/index.php?topic=240.msg2973
8: Use of undefined constant Forum - assumed 'Forum'
File: /home/content/g/o/l/username/html/forum/Themes/default/Display.template.php (eval?)
Line: 538



Member2
c6215024fbe8dd07d99cfa14867ecc2f
http://MYWEBSITE/forum/index.php
8: Use of undefined constant Forum - assumed 'Forum'
File: /home/content/g/o/l/username/html/forum/Themes/default/BoardIndex.template.php (eval?)
Line: 538



Guest
88a91a7476bde4d4bb8893076ca4008c
http://MYWEBSITE/forum/index.php?topic=287.msg8065
8: Use of undefined constant Forum - assumed 'Forum'
File: /home/content/g/o/l/username/html/forum/Themes/default/Display.template.php (eval?)
Line: 538



Member3
5703e4665e092c127bf84d67cee64686
http://MYWEBSITE/forum/index.php?action=search2
8: Use of undefined constant Forum - assumed 'Forum'
File: /home/content/g/o/l/username/html/forum/Themes/default/Search.template.php (eval?)
Line: 538


I sent you l/p and URL to test it over PM.

greyknight17

Any code changes made to your forum files? Perhaps inserted some Google ads code?

Go into phpMyAdmin and click on your database. Then click on the SQL tab and copy paste the following code and run it:

INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);

Change smf_ to whatever your database table prefix is.

ExSpirit

Errors are gone - thx, but preview and log-in time are still "broken"...



greyknight17

What did you do to get rid of the errors? Running the above SQL query should provide us with more details on those errors.

ExSpirit

I had some problem in code... I had:
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , Forum , '</a>
</td>


Now I changed to:
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt['toforum'] , '</a>
</td>

And added "$txt['toforum']" in language file...

ExSpirit

OK, the only errors that I get now are if anyone goes to their Personal messages:

http://MYWEBSITE/forum/index.php?action=pm;f=inbox;start=0
8: Undefined index: reply_to_all
Datoteka: /home/content/g/o/l/username/html/forum/Sources/Subs.php
Line: 3586

ExSpirit

Any idea about that error?

+ my preview still doesn't work, what should I do?


greyknight17

Do you have any mods installed?

Open up Themes/default/PersonalMessage.template.php and see if you can find the below code:

// Cache some handy buttons.
$quote_button = create_button('quote.gif', 145, 'smf240', 'align="middle"');
$reply_button = create_button('im_reply.gif', 146, 146, 'align="middle"');
$reply_all_button = create_button('im_reply_all.gif', 'reply_to_all', 'reply_to_all', 'align="middle"');
$forward_button = create_button('quote.gif', 145, 145, 'align="middle"');
$delete_button = create_button('delete.gif', 154, 31, 'align="middle"');

ExSpirit

Yeah, I have this code in Themes/default/PersonalMessage.template.php:
      // Cache some handy buttons.
$quote_button = create_button('quote.gif', 145, 'smf240', 'align="middle"');
$reply_button = create_button('im_reply.gif', 146, 146, 'align="middle"');
$reply_all_button = create_button('im_reply_all.gif', 'reply_to_all', 'reply_to_all', 'align="middle"');
$forward_button = create_button('quote.gif', 145, 145, 'align="middle"');
$delete_button = create_button('delete.gif', 154, 31, 'align="middle"');



I have those mods installed:

1.    AvatarSelect    1.1.2  (Not activated)
2.    Profile User Action    1.1
3.    Custom Profile Field Mod    3.16
4.    Topic Ratings    1.03
5.    Favicon    1.0
6.    VisualWarning    1.4b
7.    Profile Comments    1.3.5 (Not activated)

metallica48423

im thinking something got messed up somewhere along the way (this is rare but can happen with mods)

I would reccommend doing a complete refresh on all files.

You can achieve this by downloading the SMF upgrade package, unzipping it to your computer, deleting upgrade.php and the two sql files and uploading the rest over your current files.

This will not affect your database nor would you need to reinstall.  At that point, you'd have a stock SMF install.  Then test and see if those work or not and see if the errors clear or no.

Are all the mods listed to function with the SMF version you're using? 

How was the original install done (you say via FTP -- via webinstall or full package?)
Any upgrades along the way? how were they done?
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Advertisement: