I installed counter generic/plugin in my OJS2.1 and when articles are visited I get the following error:
Fatal error: Call to a member function getTitle() on a non-object in /var/www/test/atheneaDigital/plugins/generic/counter/CounterPlugin.inc.php on line 118
I went to line 118 and I print_r $article variable without any output
Then I print_r the templateManager variable to be sure and I got:
- Code: Select all
TemplateManager Object
(
[styleSheets] => Array
(
[0] => http://test.dehisi.org/atheneaDigital/public/journals/1/journalStyleSheet.css
)
[template_dir] => /var/www/test/atheneaDigital/templates
[compile_dir] => /var/www/test/atheneaDigital/cache/t_compile
[config_dir] => /var/www/test/atheneaDigital/cache/t_config
[plugins_dir] => Array
(
[0] => plugins
)
[debugging] =>
[error_reporting] =>
[debug_tpl] =>
[debugging_ctrl] => NONE
[compile_check] => 1
[force_compile] =>
[caching] => 0
[cache_dir] => /var/www/test/atheneaDigital/cache/t_cache
[cache_lifetime] => 3600
[cache_modified_check] =>
[php_handling] => 0
[security] =>
[secure_dir] => Array
(
)
[security_settings] => Array
(
[PHP_HANDLING] =>
[IF_FUNCS] => Array
(
[0] => array
[1] => list
[2] => isset
[3] => empty
[4] => count
[5] => sizeof
[6] => in_array
[7] => is_array
[8] => true
[9] => false
[10] => null
)
[INCLUDE_ANY] =>
[PHP_TAGS] =>
[MODIFIER_FUNCS] => Array
(
[0] => count
)
[ALLOW_CONSTANTS] =>
)
[trusted_dir] => Array
(
)
[left_delimiter] => {
[right_delimiter] => }
[request_vars_order] => EGPCS
[request_use_auto_globals] => 1
[compile_id] =>
[use_sub_dirs] =>
[default_modifiers] => Array
(
)
[default_resource_type] => file
[cache_handler_func] =>
[autoload_filters] => Array
(
)
[config_overwrite] => 1
[config_booleanize] => 1
[config_read_hidden] =>
[config_fix_newlines] => 1
[default_template_handler_func] =>
[compiler_file] => Smarty_Compiler.class.php
[compiler_class] => Smarty_Compiler
[config_class] => Config_File
[_tpl_vars] => Array
(
[SCRIPT_NAME] => /atheneaDigital/index.php
[stylesheets] => Array
(
[0] => http://test.dehisi.org/atheneaDigital/public/journals/1/journalStyleSheet.css
)
[defaultCharset] => utf-8
[baseUrl] => http://test.dehisi.org/atheneaDigital
[pageTitle] => common.openJournalSystems
[requestedPage] => article
[currentUrl] => http://test.dehisi.org/atheneaDigital/index.php/atheneaDigital/article/viewPDFInterstitial/3319/2733
[dateFormatTrunc] => %m-%d
[dateFormatShort] => %Y-%m-%d
[dateFormatLong] => %B %e, %Y
[datetimeFormatShort] => %Y-%m-%d %I:%M %p
[datetimeFormatLong] => %B %e, %Y - %I:%M %p
[currentLocale] => es_ES
[articleSearchByOptions] => Array
(
[] => search.allFields
[1] => search.author
[2] => article.title
[4] => search.abstract
[120] => search.indexTerms
[128] => search.fullText
)
[userSession] => Session Object
(
[user] => User Object
(
[_data] => Array
(
[userId] => 1
[username] => admin
[password] => 6f4465e74eea2c64384c37b2b2dd840b0f300202
[firstName] => Juan
[middleName] =>
[initials] => JMJ
[lastName] => Muñoz Justicia
[affiliation] => Universitat Autònoma de Barcelona
[email] => juan.munoz@uab.es
[phone] =>
[fax] =>
[mailingAddress] =>
[country] => ES
[biography] =>
[interests] =>
[locales] => Array
(
)
[dateRegistered] => 2006-02-08 12:04:00
[dateLastLogin] => 2006-06-30 18:05:11
[mustChangePassword] => 0
[disabled] => 0
[disabled_reason] =>
[authId] => 0
)
)
[_data] => Array
(
[id] => 89490c18faa97de8caafa6f4787f419deb1
[userId] => 1
[ipAddress] => 158.109.122.156
[userAgent] => Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
[created] => 1151683180
[lastUsed] => 1151685332
[remember] => 0
[data] => CounterPlugin_UID|s:52:"2006-06-30 18:04:42_630e886b5b3d85b8a60aa6aace99bf4c78e";userId|s:1:"1";username|s:5:"admin";
)
)
[isUserLoggedIn] => 1
[loggedInUsername] => admin
[currentJournal] => Journal Object
(
[_data] => Array
(
[journalId] => 1
[title] => Athenea Digital
[description] => Ahora que el fenómeno de la disciplinarización institucional está cada vez más marcado, Athenea Digital promueve la reflexión interdisciplinar en la tradición de las ciencias humanas y sociales. La revista aborda los fenómenos sociales contemporáneos en sus múltiples dimensiones (polÃtica, económica, cultural, comunicacional...) y valora la reflexión rigurosa sobre la articulación entre los diferentes dominios de la actividad humana.
El principal objetivo de la revista es potenciar el diálogo y la innovación en los estudios sociales y culturales. ExplÃcitamente reivindica un ethos receptivo al debate y la reflexión crÃtica tanto teórica como metodológica, internacional en su mirada y alcance, abierto, reflexivo, imaginativo y desdisciplinador.
Athenea Digital presta especial interés a la conexión y relación que aparece entre diversos desarrollos intelectuales, a los procesos de cambio en las prácticas y formas sociales, y a la transformación institucional en su sentido más amplio.
Junto a los temas habituales de la tradición social y cultural, Athenea Digital incluye reflexiones sobre: etnicidad, imaginario social, medio ambiente y sociedad, la globalización y sus discursos, poder-saber, género, teorÃas del caos y de la complejidad, postmodernidad, conflicto social, sociedad, espacio y tiempo, ciencia tecnologÃa y sociedad, nuevos movimientos sociales, identidades...
Athenea Digital se publica semestralmente, apareciendo el primer martes no festivo de los meses de mayo y noviembre.
[path] => atheneaDigital
[sequence] => 1
[enabled] => 1
)
)
[siteTitle] => Athenea Digital
[publicFilesDir] => http://test.dehisi.org/atheneaDigital/public/journals/1
[alternateLocale1] => en_US
[alternateLocale2] =>
[navMenuItems] => Array
(
[0] => Array
(
[name] => Indexada...
[isLiteral] => 1
[url] => /atheneaDigital/index.php/atheneaDigital/indexed
[isAbsolute] => 1
)
)
[displayPageHeaderTitle] => Array
(
[name] => homeHeaderLite.jpg
[uploadName] => pageHeaderTitleImage.jpg
[width] => 410
[height] => 40
[dateUploaded] => 2006-06-28 13:36:40
)
[displayPageHeaderLogo] =>
[alternatePageHeader] =>
[metaSearchDescription] => Athenea Digital - Revista de Pensamiento e Investigación Social
[metaSearchKeywords] => Ciencia;Ciencia tecnologÃa y sociedad;Conflicto;Conflicto social;Conocimiento;Construccionismo;Cualitativa;Discurso;Espacio;Etnicidad;Género;Globalización;Identidad;Identidad social;Imaginario social;Información;Investigación cualitativa;Medio ambiente
[metaCustomHeaders] =>
[numPageLinks] => 10
[itemsPerPage] => 25
[pageFooter] => Athenea Digital. Revista de Pensamiento e Investigación Social. ISSN: 1578-8946
[enableLanguageToggle] => 1
[languageToggleLocales] => Array
(
[en_US] => English
[es_ES] => Español (España)
[pt_BR] => Português (Brasil)
)
[articleId] => 3319
[galleyId] => 2733
[galley] => ArticleGalley Object
(
[_data] => Array
(
[galleyId] => 2733
[articleId] => 3319
[fileId] => 3027
[label] => PDF
[sequence] => 0
[views] => 1
[fileName] => 3319-3027-1-PB.pdf
[originalFileName] => IdeologiaPolitica.pdf
[fileType] => application/pdf
[fileSize] => 144555
[status] =>
[dateModified] => 2006-05-18 16:53:14
[dateUploaded] => 2006-05-18 16:53:14
)
)
)
[_smarty_vars] =>
[_sections] => Array
(
)
[_foreach] => Array
(
)
[_tag_stack] => Array
(
)
[_conf_obj] =>
[_config] => Array
(
[0] => Array
(
[vars] => Array
(
)
[files] => Array
(
)
)
)
[_smarty_md5] => f8d698aea36fcbead2b9d5359ffca76fmbr
[_version] => 2.6.12
[_inclusion_depth] => 0
[_compile_id] =>
[_smarty_debug_id] => SMARTY_DEBUG
[_smarty_debug_info] => Array
(
)
[_cache_info] => Array
(
)
[_file_perms] => 420
[_dir_perms] => 505
[_reg_objects] => Array
(
)
[_plugins] => Array
(
[modifier] => Array
(
[strip_unsafe_html] => Array
(
[0] => Array
(
[0] => String
[1] => stripUnsafeHtml
)
[1] =>
[2] =>
[3] =>
)
[to_array] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyToArray
)
[1] =>
[2] =>
[3] =>
)
[explode] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyExplode
)
[1] =>
[2] =>
[3] =>
)
[assign] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyAssign
)
[1] =>
[2] =>
[3] =>
)
)
[function] => Array
(
[translate] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyTranslate
)
[1] =>
[2] =>
[3] =>
[4] => 1
[5] =>
)
[flush] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyFlush
)
[1] =>
[2] =>
[3] =>
[4] => 1
[5] =>
)
[call_hook] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyCallHook
)
[1] =>
[2] =>
[3] =>
[4] => 1
[5] =>
)
[html_options_translate] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyHtmlOptionsTranslate
)
[1] =>
[2] =>
[3] =>
[4] => 1
[5] =>
)
[page_links] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyPageLinks
)
[1] =>
[2] =>
[3] =>
[4] => 1
[5] =>
)
[page_info] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyPageInfo
)
[1] =>
[2] =>
[3] =>
[4] => 1
[5] =>
)
[get_help_id] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyGetHelpId
)
[1] =>
[2] =>
[3] =>
[4] => 1
[5] =>
)
[icon] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyIcon
)
[1] =>
[2] =>
[3] =>
[4] => 1
[5] =>
)
[help_topic] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyHelpTopic
)
[1] =>
[2] =>
[3] =>
[4] => 1
[5] =>
)
[get_debug_info] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyGetDebugInfo
)
[1] =>
[2] =>
[3] =>
[4] => 1
[5] =>
)
[assign_mailto] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyAssignMailto
)
[1] =>
[2] =>
[3] =>
[4] => 1
[5] =>
)
[url] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyUrl
)
[1] =>
[2] =>
[3] =>
[4] => 1
[5] =>
)
)
[block] => Array
(
[iterate] => Array
(
[0] => Array
(
[0] => TemplateManager Object
*RECURSION*
[1] => smartyIterate
)
[1] =>
[2] =>
[3] =>
[4] => 1
[5] =>
)
)
[compiler] => Array
(
)
[prefilter] => Array
(
)
[postfilter] => Array
(
)
[outputfilter] => Array
(
)
[resource] => Array
(
)
[insert] => Array
(
)
)
[_cache_serials] => Array
(
)
[_cache_include] =>
[_cache_including] =>
)
Where no reference to $templateManager->get_template_vars('article') could be found.
Is this a bug in the plugin or is my fault?
Thanks in advance for your help,
m.
