Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: ExSpirit on August 18, 2007, 03:54:15 PM

Title: Fetching preview... all the time - problem with ANSI / UTF
Post by: ExSpirit 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?

Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: ExSpirit 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.




Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: ExSpirit 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?
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: Sarge on August 23, 2007, 02:09:34 AM
Is is a SMF install through Fantastico?
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: ExSpirit on August 23, 2007, 09:23:24 AM
Fantastico? Not that I know of.

I have hosting on godaddy, I uploaded SMF via FTP.
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: Sarge 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?
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: ExSpirit 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.

Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: SleePy 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?
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: ExSpirit 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?
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: greyknight17 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.
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: ExSpirit 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.
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: greyknight17 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 (http://www.simplemachines.org/community/index.php?topic=21919.0) 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.
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: ExSpirit on September 02, 2007, 04:26:18 PM
Errors are gone - thx, but preview and log-in time are still "broken"...


Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: greyknight17 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.
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: ExSpirit 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...
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: ExSpirit 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
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: ExSpirit on September 16, 2007, 03:56:26 AM
Any idea about that error?

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

Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: greyknight17 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"');
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: ExSpirit 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)
Title: Re: Fetching preview... all the time - problem with ANSI / UTF
Post by: metallica48423 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?