HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

7.1 - An error occurred -Posting on Forum & going to Chat Lobby

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#70847 (In Topic #14963)
Avatar

Community saint

After upgrading from 6.1.1 to 7.1 (choose to upgrade theme at the time of upgrade also) I got this error when in the Forum Create A Topic (appeared when I clicked on ADD TOPIC):

An error occurred when loading this screen onto the web browser. You are being notified of this as you are staff. If you believe this is a bug in the website software, please contact ocProducts with full details. More details are available in your browser's error console. The error was:

60: get_base_url is not defined
http://davidlfriend.com/themes/DLF_Dk_Blue/templates_cached/EN/javascript_editing.js

Got this one when I clicked on Chat Lobby on the Community side Menu as well as other places where you are trying to edit content:

An error occurred when loading this screen onto the web browser. You are being notified of this as you are staff. If you believe this is a bug in the website software, please contact ocProducts with full details. More details are available in your browser's error console. The error was:

9: get_base_url is not defined
http://davidlfriend.com/themes/DLF_Dk_Blue/templates_cached/EN/javascript_sound.js

When I click it opens in the Chat Lobby - click on CHAT and I get the error message again - click OK and it lets me into CHAT and able to engage in CHAT functions from there on…


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Prehistorics Illustrated
http://prehistoricsillustrated.com
Another ocPortal powered website &
The Fascinating World of Dinosaurs

& Prehistoric Creatures of all Kinds
Back to the top
 
Posted
Rating:
#70848
Avatar

ocStaff (admin)

Looks like you overrode JAVASCRIPT.tpl, which is not something you want to do.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#70860
Avatar

Community saint

Chris Graham said

Looks like you overrode JAVASCRIPT.tpl, which is not something you want to do.
How did I do that - where do I correct this?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Prehistorics Illustrated
http://prehistoricsillustrated.com
Another ocPortal powered website &
The Fascinating World of Dinosaurs

& Prehistoric Creatures of all Kinds
Back to the top
 
Posted
Rating:
#70861
Avatar

ocStaff (admin)

look in themes/*/templates_custom for a JAVASCRIPT.tpl



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#70864
Avatar

Community saint

Is it best to remove it from the custom theme folder entirely?
…or should it be replaced by a copy of the default JAVASCRIPT.tpl file placed into the custom theme folder?

I really don't know what modification was that I did to the JAVASCRIPT.tpl file and I know I would never have changed the file without some 'higher intelligence' here at the FORUM instructing me to (I ain't 'dat smart 'bout it O_o) …but the change was made in Feb, 2010 about 16 months ago and I never got any error messages as a result of what ever the change was until I upgraded to 7.1. 


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Prehistorics Illustrated
http://prehistoricsillustrated.com
Another ocPortal powered website &
The Fascinating World of Dinosaurs

& Prehistoric Creatures of all Kinds
Back to the top
 
Posted
Rating:
#70866
Avatar

ocStaff (admin)

yeah just delete it



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#70867
Avatar

Community saint

Chris Graham said

Looks like you overrode JAVASCRIPT.tpl, which is not something you want to do.
Yeah! I did, too. Latest 7.1 JAVASCRIPT.tpl now inserted with a minor tweak to the 'loading…' display. All working fine for me now …

thanks

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#70911
Avatar

Community saint

Well, this isn't as simple as I thought it would be. I am looking for the JAVASCRIPT.tpl so I go to Admin Zone » Style » Manage themes » Edit templates and find it there but there seems no way to delete .tpl files there.

Then I go to my preferred FTP program (Cute) but for some reason I am not able to get in (a separate problem to deal with later)

Which forced me to use cpanel's file manager. I could not find it under the:
public_html/themes/DLF_Dk_Blue/templates_custom/
directory but was able to find it in the:
public_html/themes/DLF_Dk_Blue/templates_cached/EN/JAVASCRIP
T.tpl.tcp
I deleted it there and cleared the cache and no difference so I guess I have not deleted the file as directed.

Where do I go from here?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Prehistorics Illustrated
http://prehistoricsillustrated.com
Another ocPortal powered website &
The Fascinating World of Dinosaurs

& Prehistoric Creatures of all Kinds
Back to the top
 
Posted
Rating:
#70912
Avatar

Community saint

friendly, check that you don't have an one in public_html/themes/DLF_Dk_Blue/templates/ .

Although custom code should go in "_custom" folders, the customisation may have 'accidently' been done to the non _custom directory.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#70923
Avatar

Community saint

Got my FTP access back (one down)

temp1024 said

friendly, check that you don't have an one in public_html/themes/DLF_Dk_Blue/templates/ .

Although custom code should go in "_custom" folders, the customisation may have 'accidently' been done to the non _custom directory.
None in public_html/themes/DLF_Dk_Blue/templates/

All is a non-issue now, either deleting it from …/EN/templates_cached/ fixed it or the code ferries were at work last night. Whatever, all is well again - now to fix those theme breaks suffered from the upgrade.

I am thinking on my live site that I may not do the theme upgrade at the same time as the general software upgrade to ocP 7.1 - that might be a rougher go…


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Prehistorics Illustrated
http://prehistoricsillustrated.com
Another ocPortal powered website &
The Fascinating World of Dinosaurs

& Prehistoric Creatures of all Kinds
Back to the top
 
Posted
Rating:
#70925
Avatar

Community saint

friendly said

…  now to fix those theme breaks suffered from the upgrade.
Experienced something similar in previous upgrades. Live site gets completely 'zapped' when clicking on the 'upgrade theme' button. Only way I've found to resolve the issue is to restore the 'last-good' CSS file through ocPortal, then do a massive diff-check of the two CSS files, inserting the 'new' changes, and body-swerving the modded ones …

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#70940
Avatar

Community saint

So it is unwise to do the automatic theme upgrading even with a just a few template mods? Does the upgrader script at least advise which files are potentially conflicted?

Bob
Back to the top
 
Posted
Rating:
#70942
Avatar

Community saint

To the best of my understanding (I think Chris has tried to explain this 'till the cows come home), the upgrader WILL incorporate itself into your global.css (your custom theme), but it is apparently engineered to read from the  last 'editfrom' and NOT change anything that you may have put in there.

That has not been my experience, and the only way I've found to 'get the site back' is to restore to before the last CSS edit.

Perhaps somebody more knowledgeable will enlighten …

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#70949
Avatar

Community saint

So, both methods do update all TPLs with a warning during the file integrity check when an update is blocked by a matching filename in the templates_custom directory? Are the updated files always uploaded to the templates directory?

Just wanting to make sure I understand the update process as I get closer to having a live site.

Bob
Back to the top
 
Posted
Rating:
#70959
Avatar

ocStaff (admin)

Don't do the automatic theme upgrade without a good reason, the upgrader will warn about that. It has limited information to go on and can't work perfectly.

We have hardly affected theme compatibility since v4, there is no need to upgrade any part of a theme unless we specifically say what the issues are or there is some specific change you are looking to get repeated in your own theme or if you have modified some Javascript templates. If there was some thing we had not realised initially, we would post official advice in the upgrade notes topic.

If you do decide to upgrade the theme, the community documentation has something I wrote that goes into some detail about how the automated tool works and how to do the same thing manually.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#70981
Avatar

Community saint

Thanks for the explanation, Chris.

I'll check out the community documentation just to better understand the process but I will avoid use of the automatic theme upgrading unless ocPortal specifically suggests that option in future upgrades.

Bob
Back to the top
 
Posted
Rating:
#70984
Avatar

Community saint

Chris-

The community documentation article is very informative and does a good job of illustrating a good approach to dealing with upgrades.

I suggest you pin a topic in the forum directing to the community docs so that more people might see it. For better or worse, I rarely think to look there but always try finding solutions in the forums.

Bob

Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: