Advertisement:

Author Topic: Fetching preview... all the time - problem with ANSI / UTF  (Read 5397 times)

Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Fetching preview... all the time - problem with ANSI / UTF
« on: August 18, 2007, 03:54:15 PM »
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?


Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #1 on: August 19, 2007, 05:15:49 AM »
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.





Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #2 on: August 21, 2007, 10:02:11 AM »
I also have some problems with "log-in for ever" - it's not forever, might because of this UTF-8 too?

Offline Sarge

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,209
  • Gender: Male
    • Zëri YT!
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #3 on: August 23, 2007, 02:09:34 AM »
Is is a SMF install through Fantastico?
    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

Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #4 on: August 23, 2007, 09:23:24 AM »
Fantastico? Not that I know of.

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

Offline Sarge

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,209
  • Gender: Male
    • Zëri YT!
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #5 on: August 23, 2007, 08:44:26 PM »
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

Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #6 on: August 24, 2007, 05:30:47 AM »
I only use forum now, I don't use Joomla anymore.

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


Offline SleePy

  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,321
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #7 on: August 28, 2007, 12:09:17 PM »
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
Support the SMF Support team!
Profiles:
GitHub

Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #8 on: August 28, 2007, 03:08:10 PM »
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?

Offline greyknight17

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,890
  • Gender: Male
    • Kevin's Resource Center
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #9 on: September 01, 2007, 06:51:26 PM »
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.

Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #10 on: September 02, 2007, 07:52:14 AM »
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:

Code: [Select]
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


Code: [Select]
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


Code: [Select]
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


Code: [Select]
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


Code: [Select]
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.

Offline greyknight17

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,890
  • Gender: Male
    • Kevin's Resource Center
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #11 on: September 02, 2007, 04:03:54 PM »
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:

Code: [Select]
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
Change smf_ to whatever your database table prefix is.

Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #12 on: September 02, 2007, 04:26:18 PM »
Errors are gone - thx, but preview and log-in time are still "broken"...



Offline greyknight17

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,890
  • Gender: Male
    • Kevin's Resource Center
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #13 on: September 02, 2007, 04:34:31 PM »
What did you do to get rid of the errors? Running the above SQL query should provide us with more details on those errors.

Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #14 on: September 02, 2007, 05:19:34 PM »
I had some problem in code... I had:
Code: [Select]
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , Forum , '</a>
</td>

Now I changed to:
Code: [Select]
<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...

Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #15 on: September 02, 2007, 05:37:57 PM »
OK, the only errors that I get now are if anyone goes to their Personal messages:

Code: [Select]
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

Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #16 on: September 16, 2007, 03:56:26 AM »
Any idea about that error?

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


Offline greyknight17

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,890
  • Gender: Male
    • Kevin's Resource Center
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #17 on: September 16, 2007, 01:31:09 PM »
Do you have any mods installed?

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

Code: [Select]
// 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"');

Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #18 on: September 18, 2007, 01:17:38 PM »
Yeah, I have this code in Themes/default/PersonalMessage.template.php:
      
Code: [Select]
// 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)

Offline metallica48423

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,842
  • Gender: Male
  • Professional Multislacker!
    • Zentendo
Re: Fetching preview... all the time - problem with ANSI / UTF
« Reply #19 on: September 18, 2007, 02:52:43 PM »
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

Quote
Microsoft 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