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.


Site statistics

Login / Search

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

Well-settled

Only once, and could not replicate

I attempted to pull up Site statistics, but I got this instead.

Code

 Unfortunately a query has failed [INSERT INTO ocp3_translate (id, source_user, broken, importance_level, text_original, text_parsed, language) VALUES (26024, 2, 0, 4, 'This statistics page shows a line-graph of the number of users online for each day, with a text-listing of the same statistics below. Such data can be used to analyse when greater or fewer numbers of people come to visit your site.', 'a:1:{i:0;a:4:{i:0;a:0:{}i:1;i:1;i:2;s:231:\"This statistics page shows a line-graph of the number of users online for each day, with a text-listing of the same statistics below. Such data can be used to analyse when greater or fewer numbers of people come to visit your site.\";i:3;N;}}', 'EN')] [Duplicate entry '26024-EN' for key 1] (ocPortal version: 3.0.2, PHP version: 4.4.3-dev, URL: /adminzone/index.php?page=admin_stats&type=misc)
Here is the stack trace:

Below is a stack trace revealing the state ocPortal was in when the error occured. If this represents a bug in ocPortal's unmodified software, you may want to check ocportal.com for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, the human situation, version numbers, and any other appropriate information.
We apologise for this problem and hope you will work with us so that we can fix it promptly.
File    '/home/rpgdfw/www/www/sources/global2.php'
Line    '669'
Function    'get_html_trace'
Args    

File    '/home/rpgdfw/www/www/sources/database/mysql.php'
Line    '163'
Function    'clean_exit'
Args    

object

File    '/home/rpgdfw/www/www/sources/database.php'
Line    '622'
Function    '_db_query'
Args    

'INSERT INTO ocp3_translate (id, source_user, broken, importance_level, text_original, text_parsed, language) VALUES (26024, 2, 0, 4, \'This statistics page shows a line-graph of the number of users online for each day, with a text-listing of the same statistics below. Such data can be used to analyse when greater or fewer numbers of people come to visit your site.\', \'a:1:{i:0;a:4:{i:0;a:0:{}i:1;i:1;i:2;s:231:\\"This statistics page shows a line-graph of the number of users online for each day, with a text-listing of the same statistics below. Such data can be used to analyse when greater or fewer numbers of people come to visit your site.\\";i:3;N;}}\', \'EN\')'

array

NULL

NULL

false

false

File    '/home/rpgdfw/www/www/sources/database.php'
Line    '323'
Function    '_query'
Class    'database_driver'
Type    '->'
Args    

'INSERT INTO ocp3_translate (id, source_user, broken, importance_level, text_original, text_parsed, language) VALUES (26024, 2, 0, 4, \'This statistics page shows a line-graph of the number of users online for each day, with a text-listing of the same statistics below. Such data can be used to analyse when greater or fewer numbers of people come to visit your site.\', \'a:1:{i:0;a:4:{i:0;a:0:{}i:1;i:1;i:2;s:231:\\"This statistics page shows a line-graph of the number of users online for each day, with a text-listing of the same statistics below. Such data can be used to analyse when greater or fewer numbers of people come to visit your site.\\";i:3;N;}}\', \'EN\')'

NULL

NULL

false

false

File    '/home/rpgdfw/www/www/sources/lang.php'
Line    '904'
Function    'query_insert'
Class    'database_driver'
Type    '->'
Args    

'translate'

array

File    '/home/rpgdfw/www/www/sources/lang.php'
Line    '861'
Function    'insert_lang'
Args    

'This statistics page shows a line-graph of the number of users online for each day, with a text-listing of the same statistics below. Such data can be used to analyse when greater or fewer numbers of people come to visit your site.'

4

class database_driver { var $table_prefix = 'ocp3_'; var $connection_read = array ( 0 => NULL, 1 => 'ocf', ); var $connection_write = array ( 0 => NULL, 1 => 'ocf', ); }

true

NULL

NULL

true

NULL

File    '/home/rpgdfw/www/www/sources/lang.php'
Line    '1,169'
Function    'insert_lang_comcode'
Args    

'This statistics page shows a line-graph of the number of users online for each day, with a text-listing of the same statistics below. Such data can be used to analyse when greater or fewer numbers of people come to visit your site.'

4

NULL

true

File    '/home/rpgdfw/www/www/sources/templates_interfaces.php'
Line    '652'
Function    'comcode_lang_string'
Args    

'DOC_USERS_ONLINE_STATISTICS'

File    '/home/rpgdfw/www/www/sources/templates_interfaces.php'
Line    '523'
Function    '_do_next_section'
Args    

array

object

File    '/home/rpgdfw/www/www/adminzone/pages/modules/admin_stats.php'
Line    '201'
Function    'do_next_manager'
Args    

object

object

array

'Site statistics'

File    '/home/rpgdfw/www/www/adminzone/pages/modules/admin_stats.php'
Line    '160'
Function    'misc'
Class    'module_admin_stats'
Type    '->'
Args    

File    '/home/rpgdfw/www/www/sources/zones.php'
Line    '294'
Function    'run'
Class    'module_admin_stats'
Type    '->'
Args    

File    '/home/rpgdfw/www/www/sources/site.php'
Line    '625'
Function    'load_module_page'
Args    

'adminzone/pages/modules/admin_stats.php'

'admin_stats'

File    '/home/rpgdfw/www/www/sources/site.php'
Line    '495'
Function    'request_page'
Args    

'admin_stats'

true

File    '/home/rpgdfw/www/www/adminzone/index.php'
Line    '42'
Function    'do_site'
Args    

I tried it again, but the error did not come up.
Back to the top
 
Posted
Rating:
#20857
Avatar

That's a so-called "race condition", where two different page requests conflict with each other because they're "racing to do the same thing". There are systems in place to avoid it, but it can happen if you're very unlucky. I wouldn't worry about it, ocPortal is pretty robust even if it does happen.


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: