[solved]module news blocks backend after submitting an artic

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

[solved]module news blocks backend after submitting an artic

Post by archeo »

Hello,

The steps of the problem
1- edit an article
2 - change some caracters
3 - submit the article

backend stops on this :"http://localhost/test-mise-a-jour/admin ... erface.php"

4 - press the enter key

backend go to loggin and the article is saved

the debug information after step 4 :

Code: Select all

 Notice: Module not found in memory. This could indicate that the module is in need of upgrade or that there are other problems in C:\wamp\www\test-mise-a-jour\admin\moduleinterface.php on line 54
Call Stack
#	Time	Memory	Function	Location
1	0.0000	271008	{main}( )	..\moduleinterface.php:0
2	0.1716	7428800	trigger_error ( )	..\moduleinterface.php:54
Debug is on. Redirecting disabled... Please click this link to continue.
http://localhost/test-mise-a-jour/admin/index.php?_sk_=c97183ace1261637
Debug: (0.0312) - (usage: 1097696) - (peak: 1105896)

loading page functions

Debug: (0.0312) - (usage: 1222688) - (peak: 1257696)

loading content functions

Debug: (0.0312) - (usage: 1229784) - (peak: 1257696)

loading translation functions

Debug: (0.0312) - (usage: 1244960) - (peak: 1257696)

loading php4 entity decode functions

Debug: (0.0312) - (usage: 1529488) - (peak: 1554392)

done loading files

Debug: (0.0312) - (usage: 1529736) - (peak: 1554392)

Initialize Database

Debug: (0.0468) - (usage: 2467784) - (peak: 2482880)

(mysql): SET NAMES 'utf8'

Debug: (0.0468) - (usage: 2466528) - (peak: 2482952)

Done Initializing Database

Debug display of 'Loading Modules':(0.0468) - (usage: 2665536) - (peak: 2851336)
Debug: (0.0624) - (usage: 3002912) - (peak: 3013856)

(mysql): SELECT * FROM cms_modules ORDER BY module_name

Debug: (0.0624) - (usage: 3050168) - (peak: 3060616)

(mysql): SELECT parent_module,child_module,minimum_version FROM cms_module_deps ORDER BY parent_module

Debug: (0.0936) - (usage: 5667464) - (peak: 5682848)

(mysql): SELECT * FROM cms_userplugins ORDER BY userplugin_name

Debug: (0.1092) - (usage: 6165392) - (peak: 6183264)

(mysql): SET @CG_ZEROTIME = NOW() - INTERVAL 150 YEAR,@CG_FUTURETIME = NOW() + INTERVAL 5 YEAR

Debug: (0.1404) - (usage: 6726680) - (peak: 6749696)

(mysql): SELECT preference,value FROM cms_userprefs WHERE user_id = 1

Debug: (0.156) - (usage: 6987216) - (peak: 7047832)

(mysql): INSERT INTO cms_adminlog (timestamp, user_id, username, item_id, item_name, action, ip_addr) VALUES (1446750736,1,'archeo',-1,'Languagestring: \"param_sid\"','Is missing in the languagefile: DownCnt','127.0.0.1')

Debug display of 'End of Loading Modules':(0.1716) - (usage: 7465920) - (peak: 7521072)
Debug: (0.1716) - (usage: 7466456) - (peak: 7521704)

Initialize Smarty

Debug: (0.1716) - (usage: 7466920) - (peak: 7521856)

Done Initialiing Smarty

Debug: (0.1716) - (usage: 7443152) - (peak: 7546768)

original memory is 271344

Debug: (0.1716) - (usage: 7445568) - (peak: 7546768)

Nothing is known about ... cant load it

sincerely yours
Last edited by archeo on Mon Nov 16, 2015 9:24 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: module news blocks backend after submitting an article

Post by Rolf »

Go to Module Manager and upgrade the News module manually.
Clear cache
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

Re: module news blocks backend after submitting an article

Post by archeo »

Rolf wrote:Go to Module Manager and upgrade the News module manually.
I use version 2.50.1. There is no option for upgrade ???
Clear cache
I have done that again and again
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: module news blocks backend after submitting an article

Post by Rolf »

Your System Information?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

Re: module news blocks backend after submitting an article

Post by archeo »

system information

In red :"Ghost modules" : modules uninstalled before update from 1.12 to 2.0.1.1, invisible in module manager and without folder in modules folder
EDIT : in data base ghost module are installed and active
----------------------------------------------

Cms Version: 2.0.1.1

Installed Modules:

CMSMailer: 5.2.4
FileManager: 1.5.1
MenuManager: 1.50.1
ModuleManager: 2.0
News: 2.50.1
Printing: 1.0.4
Search: 1.50.1
ThemeManager: 1.1.8
AdminSearch: 1.0
Slide: 1.0
Showtime: 3.4
CGExtensions: 1.49.11
MicroTiny: 2.0
Gallery: 2.0.3
HitCounter: 2.0
CGFeedMaker: 1.0.20
NewsSlides: 1.4
UsersGuide: 1.8.1
CodeMirror: 3.0.0
AjaxMadeSimple: 0.4.0
DownCnt: 2.5.0
CMSContentManager: 1.0.1
ModuleXtender: 1.10.6
DocumentSearch: 1.4.5
DesignManager: 1.0.1
CGSmartImage: 1.20.5
Polls: 1.1.0
Navigator: 1.0.1


Config Information:

php_memory_limit:
max_upload_size: 64000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Paris
permissive_smarty: false


Php Information:

phpversion: 5.5.12
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference:
test_db_timedifference:
memory_limit: 256M
max_execution_time: 120
output_buffering: 4096
file_uploads: On (True)
post_max_size: 10M
upload_max_filesize: 64M
session_save_path: c:/wamp/tmp (0777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Performance Information:

allow_browser_cache: On (True)
browser_cache_expiry: 6000
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)

Server Information:

Server Api: apache2handler
Server Db Type: MySQL (mysql)
Server Db Version: 5.6.17
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No file system time difference found


----------------------------------------------
Last edited by archeo on Fri Nov 06, 2015 11:18 am, edited 1 time in total.
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

Re: module news blocks backend after submitting an article

Post by archeo »

I have continued my tests :
-on page listing articles : "select all" does not work
-delete article blocks backend
-a delete of all news template does not solve the problem
-uninstall and reinstall news module solve all problems. But for me this is not a good solution because I lose all articles and templates
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

Re: module news blocks backend after submitting an article

Post by archeo »

I try the following steps to repare

1- save the tables begining by cms_layout... and cms_module_news...
2- uninstall and reinstall news
3 -suppress cms_layout... tables
4-import cms_layout... tables and cms_module_news... precedently save

The templates and the news are here. Hourray!! BUT one template does not works properly now:

Code: Select all

{$num_article=0}

{if $pagecount > 1}
  <p  style="text-align : center;  margin-bottom : 2px; padding-bottom: 5px; border-bottom : 2px solid #ccc;">
{if $pagenumber > 1}
{$firstpage}&nbsp;&nbsp;{$prevpage}&nbsp;
{/if}
{$pagetext}&nbsp;{$pagenumber}&nbsp;{$oftext}&nbsp;{$pagecount}
{if $pagenumber < $pagecount}
&nbsp;{$nextpage}&nbsp;&nbsp;{$lastpage}
{/if}
</p>
{/if}

{foreach from=$items item=entry}

{* on modifie detailpage en fonction de la catégorie de l'article en paramétrant news*}
{$detail_page="nouvelle"}
{$gabarit_det="News-Detail-actualites"}

{if $entry->category == 'Travaux en cours'}
{$detail_page="travaux-en-cours-detail"}
{$gabarit_det="News-Detail-travaux"}

{elseif $entry->category == 'Techniques 3D'}
{$detail_page="travaux-en-cours-detail"}
{$gabarit_det="News-Detail-travaux"}

{elseif $entry->category == 'Actualités'}
{$detail_page="actualites-detail"}
{$gabarit_det="News-Detail-actualites"}

{elseif $entry->category == 'Mise à jour du site'}
{$detail_page="actualites-detail"}
{$gabarit_det="News-Detail-actualites"}

{elseif $entry->category == 'Pédagogie'}
{$detail_page="pedagogie-detail"}
{$gabarit_det="News-Detail-travaux"}

{elseif $entry->category == 'musées'}

{$detail_page="musees-details"}
{$gabarit_det="News-Detail-musees"}
{news idlist="{$entry->id}"  summarytemplate="actualites_mini_pop_ss_image"    detailtemplate="News-Detail-musees" detailpage="$detail_page"}
{/if}

{if $num_article==0}

{news idlist="{$entry->id}"  summarytemplate="actualites_mini_pop"    detailtemplate="$gabarit_det" detailpage="$detail_page"}
{else}

{news idlist="{$entry->id}"  summarytemplate="actualites_mini_pop_ss_image"    detailtemplate="$gabarit_det" detailpage="$detail_page"}

{/if}

{$num_article=$num_article+1}

{/foreach}
in :

Code: Select all

{news idlist="{$entry->id}"  summarytemplate="actualites_mini_pop"    detailtemplate="$gabarit_det" detailpage="$detail_page"}
$gabarit_det is not used instead news uses default template. Before my surgery on Data base all works fine.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1922
Joined: Mon Jan 29, 2007 4:47 pm

Re: module news blocks backend after submitting an article

Post by Jo Morg »

archeo wrote: in :

Code: Select all

{news idlist="{$entry->id}"  summarytemplate="actualites_mini_pop"    detailtemplate="$gabarit_det" detailpage="$detail_page"}
$gabarit_det is not used instead news uses default template. Before my surgery on Data base all works fine.
I have my doubts that it may have worked before...

The correct Smarty syntax is either:

Code: Select all

{news idlist="{$entry->id}" summarytemplate="actualites_mini_pop" detailtemplate="{$gabarit_det}" detailpage={$detail_page}"}
or

Code: Select all

{news idlist=$entry->id summarytemplate="actualites_mini_pop" detailtemplate=$gabarit_det detailpage=$detail_page}
and I recommend the last one for less overhead.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

Re: module news blocks backend after submitting an article

Post by archeo »

Thank you for the correction. But now, after reinstalling news, none of this versions works : detailtemplate is always ignored and default used.

In a template page I use this

Code: Select all

{news  summarytemplate ='actualites_mini_pop' detailtemplate='News-Detail-musees' number ="6"  lang='fr_FR' category="actualités,Mise à jour du site,Travaux en cours,Techniques 3D,Pédagogie,musées" }

default detail template is "News-Detail-actualites"
News uses "News-Detail-actualites" instead of "News-Detail-musees"

Is detailtemplate always functional in V2?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: module news blocks backend after submitting an article

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

Re: module news blocks backend after submitting an article

Post by archeo »

I test on a freshly install V2. In simplex core::page we have

Code: Select all

{News summarytemplate='Simplex News Summary' number='2' detailtemplate='Simplex News Detail'}
and "Simplex News Detail" is not the default template. The page uses "Simplex News Detail" then detailtemplate works.
Uninstall and reinstall "News" seems not having any effect on detail template.

I do not understand why on my website detailtemplate does not work after Uninstall and reinstall "News". I tested it with the base template (simplex and News Detail Sample all other news template are deleted) and again, it is the default template that is selected instead of the writing template after detailtemplate. Anything wrong in the database?
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

Re: module news blocks backend after submitting an article

Post by archeo »

The problem is with one of my UDT. After deleting it all works fine (I hope ;D )
Locked

Return to “[locked] Installation, Setup and Upgrade”