SMFHacks.com

SMF Store => Support => Topic started by: CWVRV on August 16, 2009, 05:57:55 pm

Title: Multiple Language file errors and the BBC editor doesn't work
Post by: CWVRV on August 16, 2009, 05:57:55 pm
Store v1.3.4 on SMF v 2.0 RC1.2

First the BBC editor just doesn't respond.  I click on the icons and nothing happens.

I don't know if these errors correspond with them, but I doubt it as they are generated by store vistiors and, my error log is constantly swamped with them...

They all indicate problems in the languages/Store.english.php file:

Error 1

  Type of error: Undefined 
 http://www.classicwinnebagos.com/forum/index.php?action=store 
8: Undefined variable: scripturl
File: public_html/forum/Themes/default/languages/Store.english.php
Line: 380 

Code: [Select]
$txt['store_err_free_message'] = 'Free Order has been added for that user. To view the free order visit the <a href="' . $scripturl . '?action=store;sa=trans">transactions</a> page.';
Error 2  (tons of these!)

Type of error: Undefined 
http://www.classicwinnebagos.com/forum/index.php?action=store 
8: Undefined variable: scripturl
File: /forum/Themes/default/languages/Store.english.php
Line: 254 

Code: [Select]
$txt['store_txt_contact_sent2'] = 'Your message has been sent to the store owner. Click <a href="' . $scripturl . '?action=store;sa=myorders">here</a> to return to your MyOrders page.';
Any direction on this would be greatly appreciated.  I'm flooded with these errors.

Title: Re: Multiple Language file errors and the BBC editor doesn't work
Post by: SMFHacks on August 16, 2009, 06:06:09 pm
Quick fix for the undefined errors
Open
forum/Themes/default/languages/Store.english.php
Find
Code: [Select]
<?php
Add after
Code: [Select]
global $scripturl;
Title: Re: Multiple Language file errors and the BBC editor doesn't work
Post by: CWVRV on August 16, 2009, 07:29:07 pm
That took care of the nuisance errors!  Thanks.

Any idea how to approach the issue of the BBC editor not responding?
Title: Re: Multiple Language file errors and the BBC editor doesn't work
Post by: SMFHacks on August 16, 2009, 07:41:55 pm
Is that on the add/edit item page? Also with SMF 2.0 there are two options for the BBC editor normal and WYCIWYG
Title: Re: Multiple Language file errors and the BBC editor doesn't work
Post by: CWVRV on August 16, 2009, 08:55:26 pm
Correct, the add/edit item page.

I assume it's the WYSIWG.  It has all the text, actions and smileys icons and I have the 'disable WYSIWYG" option unchecked.
Title: Re: Multiple Language file errors and the BBC editor doesn't work
Post by: SMFHacks on August 16, 2009, 10:07:33 pm
What browser are you using? If you are using Firefox click on the icons/smileys and check the error log under help menu
Title: Re: Multiple Language file errors and the BBC editor doesn't work
Post by: CWVRV on August 16, 2009, 11:08:51 pm
OMG! 

I use Avant.  I recently uploaded FireFox again so I could view the site as the many members who use it do and noticed there are some parculiar visual differences between them.

Here's the OMG!:  I've always used Avant and everything looks fine, but when I uploaded FireFox, that's when the WYSYWIG stopped working in Avant.  I opened the add/edit item page with FireFox... and works!

Personally, I like Avant better.  What the heck do I do?  I don't want to have to have FF too just to do my editing.  And, of course, this very same thing happens with the Classified Ads & Auctions WYSIWYG editor too).  Should I just dump FireFox or is there a fix?

Thanks!
Title: Re: Multiple Language file errors and the BBC editor doesn't work
Post by: SMFHacks on August 17, 2009, 07:20:48 pm
What version of Firefox do you use?  I use firefox as well and it works ok for me. It could be a bug with SMF then I would have to that reported to the SMF team.
Title: Re: Multiple Language file errors and the BBC editor doesn't work
Post by: CWVRV on August 18, 2009, 09:20:08 am
FF v 3.5.2  WYSIWYG works ok in the forum post editing though.
Title: Re: Multiple Language file errors and the BBC editor doesn't work
Post by: SMFHacks on August 22, 2009, 09:01:43 pm
Figured out this issue took a couple hours. Seems it is a bug with SMF having a field named description fix for 1.3.5 issue affected IE browsers
Title: Re: Multiple Language file errors and the BBC editor doesn't work
Post by: CWVRV on August 23, 2009, 07:06:50 pm
Thank you for taking such a great amount of time to address these issues, it is very much appreciated.

I'll be glad to not to get those emails and all those errors!  I'll know the next time something gets ordered.

So far, I do know that the BBC editing issue is fixed!

But... big problem:  once you edit anything... anything, the entire existing description is erased and no edits can be saved.  Everything is wiped out.

Here's the corresponding error:

Type of error: Undefined  
 http://www.classicwinnebagos.com/forum/index.php?action=store;sa=edititem2  
8: Undefined index: description
File: /XXXXX/XXXXXX/public_html/forum/Sources/Store2.php
Line: 800  

Line 800:

$description = addslashes($_REQUEST['description']);

Title: Re: Multiple Language file errors and the BBC editor doesn't work
Post by: SMFHacks on August 23, 2009, 07:31:01 pm
Yes just noticed that as well from another report will get that fix shortly.
Title: Re: Multiple Language file errors and the BBC editor doesn't work
Post by: SMFHacks on August 23, 2009, 07:41:43 pm
Update posted to fix this issue
Version 1.3.5a
!Missed one bbc description field name change for SMF 2.0