Page 1 of 1
Default Page (landing page) not Loading
Posted: Mon Sep 23, 2013 6:46 pm
by C1IWorks
Hello Everyone
Website: ImageWorksVeterinary.com
Background: We acquired this website through a purchase and we are putting it on a different webserver. I can login to the admin backend.
Problem: We cannot get the homepage to load, it has no HTML code whatsoever.
Attempts to Fix: In doing some digging: It seems the $html variable is not getting handed the code outlining the 'home' template. I'm guessing a library problem or destination problem. I can place an echo so far down until it doesn't appear anymore.
Code where it stops:
Code: Select all
$pageinfo = PageInfoOperations::LoadPageInfoByContentAlias($page);
if (isset($pageinfo) && $pageinfo !== FALSE)
{
$gCms->variables['pageinfo'] =& $pageinfo;
if( isset($pageinfo->template_encoding) &&
$pageinfo->template_encoding != '' )
{
set_encoding($pageinfo->template_encoding);
}
if($pageinfo->content_id > 0)
{
//can get here
$manager =& $gCms->GetHierarchyManager();
$node =& $manager->sureGetNodeById($pageinfo->content_id);
echo "can get here9"; //cant get here
if(is_object($node))
{
$contentobj =& $node->GetContent();
$smarty->assign('content_obj',$contentobj);
}
}
Resolution: Can someone help me to figure out why it can only go so far? Thanks
Re: Default Page (landing page) not Loading
Posted: Mon Sep 23, 2013 7:45 pm
by Jo Morg
C1IWorks wrote:I can login to the admin backend.
That's good.
We need more data: CMSMS version, system info, etc, which you can get on the admin console. If you feel lost
here is a page with some troubleshooting tips.
Also
here you can find how to do a typical server move.
PS: Avoid changing the source code. You won't get any support if you do, according to the forum rules.
HTH
reply
Posted: Mon Sep 23, 2013 8:30 pm
by C1IWorks
Of course. Newbie post mistake.
I was only adding the echo to find out where it was failing. No other source code has been modified.
Versions below:
PHP: 5.2.17
CMS Install Information:
CMS Version
1.5.4
Installed Modules
CMSMailer 1.73.14
FileManager 0.4.5
MenuManager 1.5.3
ModuleManager 1.2.1
News 2.9.3
nuSOAP 1.0.1
Printing 0.2.6
Search 1.5.3
ThemeManager 1.1.0
TinyMCE 2.4.13
TemplateManager 0.2
Album 0.9.2
Archiver 0.2.3
Calendar 0.8.2
CGExtensions 1.15.3
CompanyDirectory 1.1.7
FormBuilder 0.5.3
FormBrowser 0.2.3
NMS 2.2.2
PageBlocks 0.1.5
Quizzard 0.8.1
Config Information
php_memory_limit:
process_whole_template: false
max_upload_size: 7000000
default_upload_permission: 664
assume_mod_rewrite: false
page_extension:
internal_pretty_urls: false
use_hierarchy: false
debug: false
output_compression: false
root_url: http://www.imageworksveterinary.com
root_path: /home/content/94/11770594/html/ (0705) Success
previews_path: /home/content/94/11770594/html/tmp/cache (0705) Success
uploads_path: /home/content/94/11770594/html/uploads (0705) Success
uploads_url: http://www.imageworksveterinary.com/uploads
image_uploads_path: /home/content/94/11770594/html/uploads/images (0705) Success
image_uploads_url: http://www.imageworksveterinary.com/uploads/images
use_smarty_php_tags: false
locale:
default_encoding: utf-8
admin_encoding: utf-8
PHP Information:
Current PHP Version (phpversion): 5.2.17 Success
md5 function (md5_function): On (True) Success
GD version (gd_version): 2 Success
tempnam function (tempnam_function): On (True) Success
Magic quotes in runtime (magic_quotes_runtime): Off (False) Success
PHP Effective Memory Limit (memory_limit): 64M Success
Maximum Execution Time (max_execution_time): 30 Caution
PHP Safe Mode (safe_mode): Off (False) Success
Session Save Path (session_save_path): /home/content/94/11770594/tmp (0755) Success
Checking if the httpd process can create a file inside of a directory it created (create_dir_and_file): Success
PHP register_globals (register_globals): Off (False) Success
PHP output_buffering (output_buffering): On Success
disable_functions in PHP (disable_functions): Success
PHP Open Basedir (open_basedir): Success
Test for remote URL (test_remote_url): Success
fsockopen: Connection ok! Success
fopen: Connection ok! Success
File uploads (file_uploads): On (True) Success
Maximum Post Size (post_max_size): 33M Success
Maximum Upload Size (upload_max_filesize): 32M Success
Basic XML (expat) support (xml_function): On (True) Success
Test file_get_contents (file_get_contents): On (True) Success
Test ini_set (check_ini_set): On (True) Success
Server Information:
Server API (server_api): cgi-fcgi
Server Database (server_db_type): MySQL (mysql)
Server Database Version (server_db_version): 5.0.96 Success
Server Software (server_software): Apache
Server Operating System (server_os): Linux 2.6.32-358.11.1.el6.nfsfixes.cve20132224.x86_64 On x86_64
Permission Information
tmp: /home/content/94/11770594/html//tmp (0705) Success
templates_c: /home/content/94/11770594/html/tmp/templates_c (0705) Success
modules: /home/content/94/11770594/html//modules (0705) Success
File Creation Mask (umask): /home/content/94/11770594/html/tmp/cache (0705) Success
config_file: 0604 Failure
config.php writable. It is more safe if you change permission to read-only
Re: Default Page (landing page) not Loading
Posted: Mon Sep 23, 2013 9:35 pm
by Jo Morg
It's quite an old version... so this is what I would do:
- Make sure you have a full back up;
- Take a look at config.php to make sure paths, URL's, and DB settings are correct for the new server;
- Retest the site;
- Upgrade using the recommended steps;
Links:
http://docs.cmsmadesimple.org/upgrading ... nformation
http://docs.cmsmadesimple.org/upgrading/old-versions
Please make sure you read both links: they both have pertinent documentation related to the issue.
Also, keep in mind that some modules may not have been upgraded in sync with CMSMS and may fall short at some point. Be careful and try to search the
Forge for possible problems.
It is also recommended to upgrade php version at some point in the upgrade process (immediately before CMSM 1.7.1 if I recall correctly...).
HTH
Re: Default Page (landing page) not Loading
Posted: Mon Sep 23, 2013 10:20 pm
by C1IWorks
OK -
So before I went crazy and did an update. I reloaded the include.php file.
Now I'm getting this error:
Code: Select all
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/94/11770594/html/include.php:3) in /home/content/94/11770594/html/include.php on line 36
Fatal error: Class name must be a valid object or a string in /home/content/94/11770594/html/index.php on line 230
Thoughts?
Re: Default Page (landing page) not Loading
Posted: Mon Sep 23, 2013 10:26 pm
by C1IWorks
Ok -
I reloaded the index.php from my original download and I've got images to appear.
Now I'm getting:
Code: Select all
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/94/11770594/html/include.php:3) in /home/content/94/11770594/html/include.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/content/94/11770594/html/include.php:3) in /home/content/94/11770594/html/index.php on line 328
Thoughts?
Re: Default Page (landing page) not Loading
Posted: Tue Sep 24, 2013 1:39 pm
by Jo Morg
If you transfered the files via FTP, chances are that some got corrupted. You should try an alternative method (check links to docs).
Also you should upgrade as suggested. Besides being a security risk not doing so, you won't get much help as, usually, only the last two version are officially supported.
Re: Default Page (landing page) not Loading
Posted: Wed Sep 25, 2013 8:28 pm
by C1IWorks
Re-uploaded all core files and it solved the problem.
Please mark as solved. Thank you!
Re: Default Page (landing page) not Loading
Posted: Tue Oct 15, 2013 7:02 pm
by Dr.CSS