All pages working but home page?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
ncd
Forum Members
Forum Members
Posts: 57
Joined: Tue Sep 29, 2009 1:12 am

All pages working but home page?

Post by ncd »

Hi,

I tried moving my new cmsms site form the testing subdomain to the root html when it was ready to launch, but had some issues with the page content.

I had to revert everything back to how it was, however my home page in the testing subdomain is broken!

Please take a look at businessbrokersjamiesonscomau (and .../about-us.html to view working pages)

I really don't know where to even start looking at how to fix this!  :-[

If you need to check my config or htaccess please refer to this thread http://forum.cmsmadesimple.org/index.ph ... 592.0.html

Many thanks.
replytomk3

Re: All pages working but home page?

Post by replytomk3 »

Attach your config.php and delete your database name and password information. Most likely your path is screwed up. Also, try selecting another page to be your default page. Maybe the setting or template is broken. See if that does anything.
ncd
Forum Members
Forum Members
Posts: 57
Joined: Tue Sep 29, 2009 1:12 am

Re: All pages working but home page?

Post by ncd »

Thanks Replytomk3!

Simply making another page the default, then changing it back to the home page worked! I never would have thought to try that!

However, when I went to launch the site and moved it all from the subdomain folder to the html root folder , and updated the config file (see below) to launch the site, I get this error:

Code: Select all

string(113) "Smarty error: [in tpl_top:16 line 1]: [plugin] unknown tag - 'process_pagedata' (core.load_plugins.php, line 124)"
Fatal error: Call to undefined function: smarty_cms_function_process_pagedata() in /var/virtual/web/w1633/html/tmp/templates_c/%%7E^7EA^7EA75F51%%tpl_top%3A16.php on line 5
I've searched the forums and clearing my cache before moving didn't make any difference - can you suggest anything else?

When I log into admin, some of the menu items look like this;
-- module:FormBuilder string:forms--

I found a post that suggested uploading the modules via ftp, but that didn't help either?!

Any assistance is greatly appreciated!

config.php:

Code: Select all

<?php

$config['php_memory_limit'] = '';

$config['process_whole_template'] = false;

$config['debug'] = false;

$config['output_compression'] = false;

#-----------------
#Database Settings
#-----------------

$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = '*****';
$config['db_password'] = '************';
$config['db_name'] = 'jamiesons_com_au_cms';
#Change this param only if you know what you are doing
$config["db_port"] = '';

#If app needs to coexist with other tables in the same db,
#put a prefix here.  e.g. "cms_"
$config['db_prefix'] = 'cms_';

#Use persistent connections?  They're generally faster, but not all hosts
#allow them.
$config['persistent_db_conn'] = false;

$config['use_adodb_lite'] = true;

#-------------
#Path Settings
#-------------

$config['root_url'] = 'http://www.jamiesons.com.au';
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')
{
$config['root_url'] = str_replace('http','https',$config['root_url']);
}

$config['root_path'] = '/var/virtual/web/w1633/';

#Name of the admin directory
$config['admin_dir'] = 'admin';

#Where do previews get stored temporarily?  It defaults to tmp/cache.
$config['previews_path'] = '/var/virtual/web/w1633/tmp/cache';

#Where are uploaded files put?  This defaults to uploads.
$config['uploads_path'] = '/var/virtual/web/w1633/uploads';

#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';

#---------------
#Upload Settings
#---------------

#Maxium upload size (in bytes)?
$config['max_upload_size'] = 2000000;

#Permissions for uploaded files.  This only really needs changing if your
#host has a weird permissions scheme.
$config['default_upload_permission'] = '664';

#------------------
#Usability Settings
#------------------

#Allow smarty {php} tags?  These could be dangerous if you don't trust your users.
$config['use_smarty_php_tags'] = false;

#Automatically assign alias based on page title?
$config['auto_alias_content'] = true;

#------------
#URL Settings
#------------

$config['url_rewriting'] = 'mod_rewrite'; // this is new from 1.6
$config['page_extension'] = '.html';
$config['use_hierarchy'] = true; // this will be the standard from 1.7
$config['query_var'] = 'page';

#--------------
#Image Settings
#--------------

$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';

#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = '/var/virtual/web/w1633/uploads/images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images'; 

#------------------------
#Locale/Encoding Settings
#------------------------

$config['locale'] = '';

$config['default_encoding'] = 'utf-8';
$config['admin_encoding'] = 'utf-8';

$config['set_names'] = true;

$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel';

?>
replytomk3

Re: All pages working but home page?

Post by replytomk3 »

Check that

Code: Select all

/var/virtual/web/w1633/html/
is indeed your new server path.

Press "clear cache" again on the new server.
ncd
Forum Members
Forum Members
Posts: 57
Joined: Tue Sep 29, 2009 1:12 am

Re: All pages working but home page?

Post by ncd »

Crickey! How embarrasing... I left off 'html'!

So the home page is working now, but the links to other pages are displaying this error;

The requested URL /about-us.html was not found on this server.

Could this be pretty url issue? Because I'm sure my htaccess file is correct:

Code: Select all

# Attempt to override some php settings, these settings may be helpful on some hosts if your
# default configuration does not meet CMS's minimum requirements, and your host
# has given your account appropriate permissions
#php_value upload_max_filesize "10M"
#php_value session_save_path "tmp/cache"

#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

# (this is important, so uncomment if your host permit)
#Options -Indexes
#ServerSignature Off
#
Options +FollowSymLinks
#
<IfModule mod_rewrite.c>
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /

# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# except for form POSTS
# RewriteCond %{REQUEST_URI} !/$
# RewriteCond %{REQUEST_URI} !\.
# RewriteCond %{REQUEST_METHOD} !POST$
# RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
 
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+).html$ index.php?page=$1 [QSA]
Thanks again :)
Post Reply

Return to “CMSMS Core”