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

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


File gone missing

Login / Search

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

Community saint

I am getting the following error message when trying to access the "Configure my author profile" function from an account other than admin:
A language file for language EN is missing: main_google_map_users (lang/EN/main_google_map_users.ini or an overridden equivalent to this path) (version: 7.1, PHP version: 5.2.17, URL: /cms/cms_authors/_ad.htm?keep_su=MikeRitter)

I have confirmed that lang/EN/main_google_map_users.ini is missing and that it does not exist in lang_custom. I have confirmed that the ocUsermap is installed (actually, uninstalled and reinstalled it). I have also checked the block modules to verify it is installed.

Now for the really interesting part: it works with some accounts but not others. It works with admin and an account (Tommy T) but not with MikeRitter (which is a super-moderator account).

Below is the stack trace:

Code

File    '/home/xxxxxx/public_html/xxxxxx/sources/failure.php'
Line    '669'
Function    'get_html_trace'
Args   

File    '/home/xxxxxx/public_html/xxxxxx/sources/global2.php'
Line    '936'
Function    '_fatal_exit'
Args   
object


File    '/home/xxxxxx/public_html/xxxxxx/sources/lang_compile.php'
Line    '140'
Function    'fatal_exit'
Args   
object


File    '/home/xxxxxx/public_html/xxxxxx/sources/lang.php'
Line    '543'
Function    'require_lang_compile'
Args   
'main_google_map_users'

'EN'

NULL

'/home/xxxxxx/public_html/xxxxxx/lang_cached/EN/main_google_map_users.lcd'

false


File    '/home/xxxxxx/public_html/xxxxxx/sources/lang.php'
Line    '462'
Function    'require_lang'
Args   
'main_google_map_users'

'EN'

NULL

false


File    '/home/xxxxxx/public_html/xxxxxx/sources_custom/hooks/systems/ocf_cpf_filter/latitude.php'
Line    '26'
Function    'require_lang'
Args   
'main_google_map_users'


File    '/home/xxxxxx/public_html/xxxxxx/sources/ocf_members.php'
Line    '126'
Function    'to_enable'
Class    'Hook_ocf_cpf_filter_latitude'
Type    '->'
Object    Hook_ocf_cpf_filter_latitude::__set_state(array( ))
Args   

File    '/home/xxxxxx/public_html/xxxxxx/sources/ocf_members.php'
Line    '189'
Function    'ocf_get_all_custom_fields_match'
Args   
array ( 0 => 3, )

NULL

NULL

NULL

NULL

NULL

NULL

0

NULL


File    '/home/xxxxxx/public_html/xxxxxx/cms/pages/modules/cms_authors.php'
Line    '140'
Function    'ocf_get_all_custom_fields_match_member'
Args   
5


File    '/home/xxxxxx/public_html/xxxxxx/cms/pages/modules/cms_authors.php'
Line    '82'
Function    '_ad'
Class    'Module_cms_authors'
Type    '->'
Object    Module_cms_authors::__set_state(array( ))
Args   

File    '/home/xxxxxx/public_html/xxxxxx/sources/zones.php'
Line    '387'
Function    'run'
Class    'Module_cms_authors'
Type    '->'
Object    Module_cms_authors::__set_state(array( ))
Args   

File    '/home/xxxxxx/public_html/xxxxxx/sources/site.php'
Line    '960'
Function    'load_module_page'
Args   
'cms/pages/modules/cms_authors.php'

'cms_authors'


File    '/home/xxxxxx/public_html/xxxxxx/sources/site.php'
Line    '749'
Function    'request_page'
Args   
'cms_authors'

true


File    '/home/xxxxxx/public_html/xxxxxx/cms/index.php'
Line    '50'
Function    'do_site'
Args   

Why the inconsistent results?

Why is the file missing even though the add-on and add-on module both indicate they are installed.

Bob
Back to the top
 
Posted
Rating:
#71084
Avatar

It probably got packaged into the other google map addon by mistake, could you install that one too and see if that fixes it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#71092
Avatar

Community saint

Chris-

I installed both ocUsermap and ocDatamap and had the same problems. It appears the add-on is installing lang_custom/EN/main_google_map.ini while the other parts of the code are looking for /lang_custom/EN/main_google_map_users.ini. I copied this file over from my real site and everything was working again on my test site.

Bob
Back to the top
 
Posted
Rating:
#71311
Avatar

Community saint

Chris-

Did you look into the possible mis-packaging of /lang_custom/EN/main_google_map.ini in theocUsermap addon?

Bob
Back to the top
 
Posted
Rating:
#71396
Avatar

I have checked, and the file is in the latest version of the addon. Uninstalling/reinstalling is not enough to get new code - you need to tell it to reimport the latest version for the code to change.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#71414
Avatar

Community saint

Thank you for my morning "duh" moment.  :$

Bob
Back to the top
 
Posted
Rating:
#71415
Avatar

Community saint

Chris-

Is it best to uninstall the old version before updating to the new version? Will doing this cause any data loss?

Bob

EDIT: Never mind, just read the answer on the add-ons page:
If there is a new version of a third-party addon you would import that and install it (don't uninstall the old version as you would lose data).
Back to the top
 
Posted
Rating:
#71417
Avatar

Community saint

Posted 5:33 AM

BobS said

Thank you for my morning "duh" moment …
Posted 5:43 AM

BobS said

Is it best to … ?

EDIT: Never mind, just read the answer on the add-ons page …

G'day Bob. TWO 'duh' moments in 10 minutes? Must be a crappy Saturday in your neck o' the woods.

'Fings can only get better, huh?

 :lol:


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:
#71418
Avatar

Community saint

It's Friday morning here.

I was up late last night and had only had two cups of tea when I wrote those.

I keep meaning to impose a rule stating "Don't go near ocPortal until you've had your third cup." But I check my email and see I have activity in threads and jump right into it.

Bob
Back to the top
 
Posted
Rating:
#71420
Avatar

Community saint

BobS said

It's Friday morning here.

Oooops!

For some reasson I placed you in Oz. Must be the many posts on Geo-Location, raised by you and temp that has confused me. Methinks I should go back and check first, but it is probably temp who is in Oz?

TEA? What happened to the 'coffee-culture'?

 :'(

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:
#71422
Avatar

Community saint

Temp is in Oz.

Green tea at home as my standard beverage - it's healthier than coffee. But I always have a cup o' joe when I'm out and about in the morning.

Bob
Back to the top
 
Posted
Rating:
#71423
Avatar

Importing a new addon will erase data in some cases, we are fixing this in 7.1.1, which is imminent.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: