Installing or Upgrading to 1.10.x - Problems and Solutions

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.
User avatar
seensite
Forum Members
Forum Members
Posts: 173
Joined: Sun Feb 10, 2008 7:36 pm

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by seensite »

Trying to determine wether a module is 1.10.x compatible or not, Module Manager is a good tester: if an install is successfull via the admin of Module Manager, it has good chances to be compatible. If not and you have to install it via Modules by .xml or file upload, it will surely brake your 1.10.x or 1.9.4.3 install.

Multi-Language Websites Poll: MleCMS and Babel seems not 1.10.x compatible.
Ron@Spikecity

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by Ron@Spikecity »

Upgraded from 1.9.4.3 to 1.10.2 using FTP and full version, get upto step 6 without any errors and warnings, ending with only:

Thanks for upgrading CMS Made Simple to 1.10.2 (Casa Pilote)

Never reaching step 7
Site is blank, admin is blank, no php errors (could be that error is surpressed on the server though)

Any hints?
This is supposed to be a live site :(

EDIT
Never mind, it seemed to be a few non compatible modules and the social media tag that spoiled the fun.

Now up and running at www.hetbestevoormijnhond.nl :)
Tino
Forum Members
Forum Members
Posts: 44
Joined: Mon Apr 28, 2008 7:58 pm

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by Tino »

Simple one to fix but might cause a few headaches.

I just upgraded a site from 1.7>1.9.1>1.9.4.3>1.10.2 and only after the last step I lost my menus on the front end of the site.

All that was needed was for the smarty tag in my templates to be changed from {cms_module...} to {menu}.
kupido
Forum Members
Forum Members
Posts: 10
Joined: Thu Dec 08, 2011 3:16 pm

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by kupido »

Hello

i want to upgrade from 1.9.4.1 to 1.10.2

I tested all:)

i copy all files from 1.10.2 full to my 1.9.4.1 and then i go to .../install/upgrade.php
And on this i only come to step 2. it load a short time and then nothing happens.
I can go again to the adminpanel and log me in and can make everything but it comes a systemmessage: Shema 34 and i have to update to schema 35
then i click on start update it load and load and fter a long time i get an error..

I had also only update to version 1.10 and it also stopped at step 2

Has any1 an Idea, pls?


thx
Lineapixel
Forum Members
Forum Members
Posts: 62
Joined: Mon Oct 30, 2006 2:21 pm

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by Lineapixel »

Well, it's been a tough fight, but I came up as the winner against my website. ;D

According to some hints found in this and other upgrade topics, it was obvious that modules were the only problem in the process, so I used this procedure:
- set up a clone website in a subdirectory;
- (obviously) backed up everything;
- manually downloaded all the modules updates (zip package), checking the forge page for every non-core module I have installed to compare version numbers and release dates.
- uploaded last 10.x files (and language pack) via ftp
- uploaded every modules' update via ftp
- since they're not used anymore, I manually removed Printing, NuSoap, TinyMCE via ftp
- renamed the modules' folders I was not sure of (FormBuilder, Gallery, HostedVideoAlbums, Showtime), via ftp, adding an "ex_" before the name (well, it doesn't matter what you add, this was just my choice)
- started the upgrade process who completed succesfully
- once logged back to my freshly upgraded 1.10.x website's admin page I checked the module's page
- upgraded those modules who needed so
- re-renamed the module's folder via ftp ONCE a time and checked if they were correctly showing up in the module's list

That's it, my clone website is alive and kicking, freshly upgraded.
Now I'm gonna do the same with the real website, but there's no reason this procedure should fail, since they're on the same webspace and database server.
I just wanted to share the experience for those with the same problems I went through.

[Edit] This topic was very helpful to understand the correct procedure: http://forum.cmsmadesimple.org/viewtopi ... =3&t=58971
jurrie
New Member
New Member
Posts: 9
Joined: Fri Feb 10, 2012 6:35 pm

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by jurrie »

Hello everyone,

I installed 1.10.3 this evening, and then installed some modules I've created. They install ok, but don't work... The stacktrace shows

Code: Select all

Call to undefined method pear_ADOConnection::StartTrans()
I'm using MySQL 5.1.58-1ubuntu1, Apache/2.2.20 (Ubuntu) and PHP 5.3.6-13ubuntu3.5 with Suhosin-Patch and in my config file I have included line:

Code: Select all

$config['dbms'] = 'mysql';
Now I don't get two things:
- why does cmsms choose pear_ADOConnection per default? I would suspect mysql_driver_ADOConnection...
- how do I use transactions with the PEAR ADOConnection?

Thanks for your answers.

With kind regards,

Jurrie
jurrie
New Member
New Member
Posts: 9
Joined: Fri Feb 10, 2012 6:35 pm

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by jurrie »

jurrie wrote:Now I don't get two things:
- why does cmsms choose pear_ADOConnection per default? I would suspect mysql_driver_ADOConnection...
- how do I use transactions with the PEAR ADOConnection?
I found a solution myself.

In CMSMS 1.9.3, lib/adodb.functions.php:76 reads:

Code: Select all

$dbinstance =& ADONewConnection($config['dbms'], 'pear:date:extend:transaction');
In CMSMS 1.10.3, lib/adodb.functions.php:79-80 read:

Code: Select all

$str = 'pear:date:extend';
$dbinstance = ADONewConnection($config['dbms'], $str);
Aha, the 'transaction' part has disappeared. I made it read

Code: Select all

$str = 'pear:date:extend:transaction';
and my transactions work again :)

As this is probably a bug, I've filed a bugreport at http://dev.cmsmadesimple.org/bug/view/7596

About the pear_ADOConnection versus mysql_driver_ADOConnection: seems like the MySQL ADO Connection supports various extentions (for example: 'transaction' is an extention). The 'pear' extention makes the MySQL driver implement the PEAR interface. Thus, the pear_ADOConnection can be used (which uses mysql_driver_ADOConnection under the hood).

With kind regards,

Jurrie
miles
Forum Members
Forum Members
Posts: 28
Joined: Wed May 07, 2008 9:20 am

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by miles »

Hi i have just upgraded from 1.9.4.2 "Faanui" to 1.10.3 "Hyacinthe" following the upgrade procedure which went without a hitch.... on the old site i had News & NFS modules installed (NFS 'News Flash Scroller' scrolls text from the news module just makes it a bit more interesting!) but NFS has stopped working. after the upgrade there were some modules that needed upgrading (neither of these 2 needed upgrading) which i have done but it didnt make any difference. i have removed the modules & reinstalled them but still the same? i use the same tags etc {cms_module module=nfs} but just nothing shows up, i have changed the number of articles to show, i have changed the settings so that 'show articles where news date is within the last 60 days' and checked that all articles are within this period etc etc..
Has any one got any ideas? I really appreciate any assistance given!
Last edited by miles on Mon Mar 05, 2012 10:42 am, edited 1 time in total.
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm
Location: the Netherlands

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by M@rtijn »

The procedure says 'update modules before upgrading CMSMS core'
The modyle NFS is so old and not had an update in a long time that it has been removed from the Forge. That should give you enough information, it will not work under 1.10.x
Make your community a better place!
miles
Forum Members
Forum Members
Posts: 28
Joined: Wed May 07, 2008 9:20 am

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by miles »

M@rtijn wrote:The procedure says 'update modules before upgrading CMSMS core'
The modyle NFS is so old and not had an update in a long time that it has been removed from the Forge. That should give you enough information, it will not work under 1.10.x
oh thats not good, is there an alternative to this module?
placeshifter
New Member
New Member
Posts: 4
Joined: Sun Oct 28, 2012 11:24 am

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by placeshifter »

I upgraded from 1.9.4.3 to 1.10 (with a clone directory with a clone database) and am getting the following errors.

Any idea what I can do to fix?

/home/site/public_html/clone/lib/smarty/Smarty.class.php:1593 - trigger_error
/home/site/public_html/clone/lib/smarty/Smarty.class.php:1415 - _fetch_resource_info
/home/site/public_html/clone/lib/smarty/Smarty.class.php:1261 - _compile_resource
/home/site/public_html/clone/lib/classes/module_support/modtemplates.inc.php:182 - fetch
/home/site/public_html/clone/lib/classes/class.CMSModule.php:2388 - cms_module_ProcessTemplate
/home/msc/public_html/clone/modules/MenuManager/action.default.php:251 - ProcessTemplate
/home/site/public_html/clone/lib/classes/class.CMSModule.php:1583 - include
/home/site/public_html/clone/lib/classes/class.CMSModule.php:1628 - DoAction
/home/site/public_html/clone/lib/module.functions.php:122 - DoActionBase
/home/site/public_html/clone/plugins/function.menu.php:22 - cms_module_plugin
/home/site/public_html/clone/tmp/templates_c/%%25^25C^25C8B04D%%template%3A15.php:39 - smarty_cms_function_menu
/home/site/public_html/clone/lib/smarty/Smarty.class.php:1263 - include
/home/site/public_html/clone/index.php:275 - fetch
string(83) "Smarty error: unable to read resource: "module_file_tpl:MenuManager;bulletmenu.tpl""
User avatar
kerryshamblin
Forum Members
Forum Members
Posts: 87
Joined: Wed Apr 14, 2010 5:21 pm

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by kerryshamblin »

Can someone please help me rewrite a UDT I used for making Previous-Next links for my news items? I understand that it needs to be re-done, but my coding skills are nillz! Thank you!

Code: Select all

if (!function_exists('MyGetModuleInstance'))
{
        function &MyGetModuleInstance($module)
        {
                global $gCms;

                if (isset($gCms->modules[$module]) &&
                        $gCms->modules[$module]['installed'] == true &&
                        $gCms->modules[$module]['active'] == true)
                {
                        return $gCms->modules[$module]['object'];
                }
                // Fix only variable references should be returned by reference
                $tmp = FALSE;
                return $tmp;
        }
}

global $gCms;
$db = &$gCms->db;

$news = MyGetModuleInstance('News');


$pageid = ($_REQUEST['pageid']) ? $_REQUEST['pageid'] : $params['pageid'];
$currdate = $params['currdate'];
if(!$currdate) return;

// get all news articles sorted by ascending date
$query_next = "SELECT news_id,news_title FROM  ".cms_db_prefix()."module_news WHERE news_date > ?  ORDER BY news_date ASC LIMIT 1";
$query_prev = "SELECT news_id,news_title FROM ".cms_db_prefix()."module_news WHERE news_date < ?  ORDER BY news_date DESC  LIMIT 1";

$result_next = &$db->GetRow($query_next,array($currdate));
$result_prev = &$db->GetRow($query_prev,array($currdate));

if($result_next['news_id']) {
$aliased_title = munge_string_to_url($result_next['news_title']);
$prettyurl = 'news/' . $result_next["news_id"] .'/'.$pageid."/$aliased_title";
$next_uri = $news->CreateLink('cntnt01', 'detail', $pageid, '', array('articleid' => $result_next["news_id"]) ,'', true, false, '', true, $prettyurl);
}else{
$next_uri = "";
}


if($result_prev['news_id']) {
$aliased_title = munge_string_to_url($result_prev['news_title']);
$prettyurl = 'news/' . $result_prev["news_id"] .'/'.$pageid."/$aliased_title";
$prev_uri = $news->CreateLink('cntnt02', 'detail', $pageid, '', array('articleid' => $result_prev["news_id"]) ,'', true, false, '', true, $prettyurl);
}else{
$prev_uri = "";
}

$smarty->assign('news_next_url', $next_uri);
$smarty->assign('news_next_text', $news->lang("next"));
$smarty->assign('news_prev_url', $prev_uri);
$smarty->assign('news_prev_text', $news->lang("prev"));
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by Jo Morg »

Not sure if it covers all the changes but start by changing:

Code: Select all

if (!function_exists('MyGetModuleInstance'))
{
        function &MyGetModuleInstance($module)
        {
                global $gCms;

                if (isset($gCms->modules[$module]) &&
                        $gCms->modules[$module]['installed'] == true &&
                        $gCms->modules[$module]['active'] == true)
                {
                        return $gCms->modules[$module]['object'];
                }
                // Fix only variable references should be returned by reference
                $tmp = FALSE;
                return $tmp;
        }
}

global $gCms;
$db = &$gCms->db;

$news = MyGetModuleInstance('News');
#............ rest of code .......
to:

Code: Select all

$gCms = cmsms();
$db = $gCms->GetDb();;

$news =cms_utils::get_module('News');
#............ rest of code .......
The rest of the code seems good to go...
"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!
User avatar
kerryshamblin
Forum Members
Forum Members
Posts: 87
Joined: Wed Apr 14, 2010 5:21 pm

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by kerryshamblin »

Thanks, Jo! That worked except for I'm getting a strange result in the News Detail page that looks like "<< --Add Me - module:News string:prev--"

I get that I need to add something somewhere, but not sure where. This is the code I'm using to call the UDT in my template:

Code: Select all

{prev_next pageid=$page_id currid=$entry->id currdate=$entry->postdate}
<p>{if $news_prev_url}<a href=\"{$news_prev_url}\"><< {$news_prev_text}</a> &nbsp;| {/if}{if $news_next_url}&nbsp;<a href=\"{$news_next_url}\"> {$news_next_text} >></a>{/if}
(Not sure about those back slashes and why they are there. Same results if I take them away. Got the code from sql backup.)

Thanks!
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: Installing or Upgrading to 1.10.x - Problems and Solutio

Post by Jo Morg »

kerryshamblin wrote:That worked except for I'm getting a strange result in the News Detail page that looks like "<< --Add Me - module:News string:prev--"
That, usually means the moldule language file has a missing string, in this case the $lang['prev'] = '<something, probably just (Previous)>'; I think that you can use the module_custom folder trick, to have a custom lang file with just the entries you need... (the ones missing)...
You can see that this is assigned with a $news->lang("next").
There is also a possibility that this was change on a recent News version, so a check to the en_US.php lang file could give you a clue if there is an alternative entry...
kerryshamblin wrote: (Not sure about those back slashes and why they are there. Same results if I take them away. Got the code from sql backup.)
These should escape the double quotes when using them enclosed by a string enclosed by other double quotes. If it's not the case remove them.
"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!
Locked

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