Page 4 of 5

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

Posted: Mon Nov 28, 2011 7:21 am
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.

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

Posted: Thu Dec 01, 2011 2:03 pm
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 :)

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

Posted: Tue Dec 06, 2011 11:24 pm
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}.

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

Posted: Thu Dec 08, 2011 3:22 pm
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

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

Posted: Mon Jan 16, 2012 9:57 am
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

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

Posted: Fri Feb 10, 2012 7:17 pm
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

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

Posted: Sun Feb 12, 2012 9:49 am
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

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

Posted: Mon Mar 05, 2012 10:24 am
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!

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

Posted: Mon Mar 05, 2012 10:27 am
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

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

Posted: Mon Mar 05, 2012 10:44 am
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?

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

Posted: Sun Oct 28, 2012 11:27 am
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""

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

Posted: Tue Dec 04, 2012 7:48 pm
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"));

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

Posted: Tue Dec 04, 2012 8:21 pm
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...

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

Posted: Tue Dec 04, 2012 8:56 pm
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!

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

Posted: Tue Dec 04, 2012 9:23 pm
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.