1.10.3 to 1.11.10 - module upgrade fails [ SOLVED]

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
wmdvanzyl
Forum Members
Forum Members
Posts: 214
Joined: Fri May 06, 2011 12:48 pm

1.10.3 to 1.11.10 - module upgrade fails [ SOLVED]

Post by wmdvanzyl »

Hi All.

Doing an upgrade from 1.10.3 to 1.11.10 using the steps provided here:
http://docs.cmsmadesimple.org/upgrading/old-versions

So i started by upgrading all my modules. Gallery updated fine, but AdvancedContent failed during upgrade and now i have no front or back end access with the following error:

Code: Select all

Fatal error: Call to undefined method Smarty_CMS::registerPlugin() in /home/modhcbsp/public_html/humm/modules/AdvancedContent/AdvancedContent.module.php on line 45
System info:

----------------------------------------------

Cms Version: 1.10.3

Installed Modules:

CMSMailer: 2.0.2
CMSPrinting: 1.0
FileManager: 1.2.0
MenuManager: 1.7.7
MicroTiny: 1.1.1
ModuleManager: 1.5.3
News: 2.12.3
Search: 1.7
ThemeManager: 1.1.4
AdvancedContent: 0.9.3
Gallery: 1.6
FormBuilder: 0.7.3
CGExtensions: 1.31
CGSmartImage: 1.9.5
CGFBApp: 1.0.7
AceEditor: 0.2.5
Captcha: 0.4.6
TinyMCE: 2.9.12


Config Information:

php_memory_limit:
process_whole_template: false
output_compression: false
max_upload_size: 2000000
default_upload_permission: 664
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.3.25
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 64M
max_execution_time: 150
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.1.72


----------------------------------------------

Questions:

1. How do i undo this action and get back on upgrade path?
2. How do i upgrade AdvancedContent successfully?
Last edited by wmdvanzyl on Wed Mar 05, 2014 10:53 am, edited 1 time in total.
zaidcrowe
Forum Members
Forum Members
Posts: 109
Joined: Wed Jun 10, 2009 3:43 pm

Re: 1.10.3 to 1.11.10 - module upgrade fails

Post by zaidcrowe »

To start with, rename the advanced content module folder in modules/

to some thing else, and then start the upgrade process again - will that at least let you upgrade?
wmdvanzyl
Forum Members
Forum Members
Posts: 214
Joined: Fri May 06, 2011 12:48 pm

Re: 1.10.3 to 1.11.10 - module upgrade fails

Post by wmdvanzyl »

zaidcrowe wrote:To start with, rename the advanced content module folder in modules/

to some thing else, and then start the upgrade process again - will that at least let you upgrade?
Thanks zaid. I will try that. The advice on proper upgrade according to the link i posted is to upgrade the modules first. Are you suggesting that i skip AdvancedContent, then upgrade, then try to get it to work again?

UPDATE: upgrade went well, but now AdvancedContent is no longer listed as a module that needs updating?? When i updated another module it also listed AdvancedContent as updated successfully.

AdvancedContent is no longer listed as in need of upgrade, but on the Pages page is says (deprecated) next to every page that is using AdvancedContent. That is explained here:
http://dev.cmsmadesimple.org/bug/view/8071

BUT my pages do not work and i can't access them to cahnge content type. Trying to access a page results i nthis error"

Code: Select all

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "template:23" on line 29 "{capture assign=galleryfolder value=$entry->gallery}{content block="Gallery Folder" description='Enter the name of the Gallery folder you wish to use' page_tab='Header Options' wysiwyg='false' oneline='true'}{/capture}" unexpected "value" attribute <-- thrown in /home/modhcbsp/public_html/humm/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 29
I think the issue might be related to AdvancedContent module. Any ideas?
LadyHLG
Forum Members
Forum Members
Posts: 38
Joined: Wed Apr 21, 2010 1:47 pm

Re: 1.10.3 to 1.11.10 - module upgrade fails

Post by LadyHLG »

I had a similar issue with the Advanced Content Module when upgrading. For my particular install I had to rename the folder and run the upgrade from 1.10.3 through to 1.11.2, and then reactivated the Advanced Content Mod. After that I was able run the upgrade on the module itself.

Good Luck
LadyHLG
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: 1.10.3 to 1.11.10 - module upgrade fails

Post by Rolf »

The Smarty code used isn't valid. The error message is very clear. Try to fix this first!
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
wmdvanzyl
Forum Members
Forum Members
Posts: 214
Joined: Fri May 06, 2011 12:48 pm

Re: 1.10.3 to 1.11.10 - module upgrade fails

Post by wmdvanzyl »

Rolf wrote:The Smarty code used isn't valid. The error message is very clear. Try to fix this first!
Hi Rolf.

I read that the the newer version used an updated smarty and was therefor more strict. The code you see there is from the template i used to put this site together. Clearly, the template does not comply with the newer smarty standards. I am, however, not even moderately good at smarty - but i love to learn!

The error says it doesn't like the "value" option here. I am not sure whether this is syntax or semantics that is causing the problem.

Can you maybe link me to a relevant smarty guide?

Code: Select all

{capture assign=galleryfolder value=$entry->gallery}
AdvancedContent itself tells me that the page type is deprecated, which is what is probably causing the error, but i can't change the page type since there is no bulk action and trying to access the page results in the error.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: 1.10.3 to 1.11.10 - module upgrade fails

Post by Rolf »

You can't use "value" in a {capture} tag. Read http://www.smarty.net/docs/en/language. ... apture.tpl

"value" is an attribute of the {assign} tag...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
wmdvanzyl
Forum Members
Forum Members
Posts: 214
Joined: Fri May 06, 2011 12:48 pm

Re: 1.10.3 to 1.11.10 - module upgrade fails

Post by wmdvanzyl »

Thanks Rolf.

This is a template the Goran created and i suppose it needs updating for the newer Smarty versions.

I removed the "value" operator:

Code: Select all

{capture assign=galleryfolder value=$entry->gallery}

Code: Select all

{capture assign=galleryfolder}
I am now able to access the pages again and have updated their page types to the new AdvancedContent type. The site is also displaying correctly.

Thanks for all the help!
Locked

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