Page 1 of 1

Website moved.. Errors on page. Wont show.

Posted: Wed Nov 16, 2005 12:29 pm
by alfblack
Here's what happened..

I upgraded my hosting to a higher package.

I got moved and the directories were changed.

I edited the config.php but I'm now getting an error like this...


/home/USERNAME/public_html/core/lib/smarty/Smarty.class.php



In admin, trying to preview a page.

Fatal error: Smarty error: [in preview:cmspreviewJCpHRW line 45]: syntax error: unrecognized tag 'breadcrumbs' (Smarty_Compiler.class.php, line 580) in /home/mergelan/public_html/core/lib/smarty/Smarty.class.php on line 1088


Any suggestions on how to go about fixing this?
Is there a hardcoded path in the database?

** oh, I editing the path changing "USERNAME"

Another thing, I tried to put the offline message. All it did was blank the page.

Re: Website moved.. Errors on page. Wont show.

Posted: Wed Nov 16, 2005 1:34 pm
by alfblack
Hum.. Sorry, I pasted the wrong error message. :( And I cant seem to make it work again.

Now, Everything is always blank. Even when I turn off the site maintenace message. :(

I tried removing the breadcrumb in the template. So far, no effect. *sigh*

Re: Website moved.. Errors on page. Wont show.

Posted: Wed Nov 16, 2005 1:43 pm
by alfblack
Checking the  file Smarty.class.php on line 1088

/**
    * trigger Smarty error
    *
    * @param string $error_msg
    * @param integer $error_type
    */
    function trigger_error($error_msg, $error_type = E_USER_WARNING)
    {
        trigger_error("Smarty error: $error_msg", $error_type);
    }

It's a error reporting code?

Re: Website moved.. Errors on page. Wont show.

Posted: Wed Nov 16, 2005 1:48 pm
by alfblack
OMG, looks like there's extensive damage to the CMS. There are a few wierdness to the admin menu.

Extensions > tag

it's Empty!!

Extensions > TinyMCE

"TinyMCE Interface
--Add Me - module:TinyMCE string:stripbackgroundtags--:"

Hum... I think I'll just reinstall this thing. But question is. What the heck happend to this to damage it so??!

Re: Website moved.. Errors on page. Wont show.

Posted: Wed Nov 16, 2005 4:25 pm
by westis
hi alfblack,

Sorry can't help you with your first errors, hopefully someone else can. But the -- Add Me -- message you get because a string in that module is not translated to your language.

Personally I would prefer if the English string is used instead if it's not translated to the language used, to avoid this bug-like Add Me message, that may cause confusion to people who don't know why it's there. But the intention is that it should make people aware that there is a string that needs translation...

:-)

Re: Website moved.. Errors on page. Wont show.

Posted: Wed Nov 16, 2005 4:57 pm
by alfblack
"module is not translated to your language. "

The thing is, I am using english.  This only happened on the move (or my attempt of).

Re: Website moved.. Errors on page. Wont show.

Posted: Thu Nov 17, 2005 1:18 pm
by Ted
It still seems related to config.php to me.  Double and triple check that all of the fields are correct.

Re: Website moved.. Errors on page. Wont show.

Posted: Fri Nov 18, 2005 11:09 am
by alfblack
"either during the move, not all files were moved (somtime ftp client acts weird)"

Ahh. I asked the site admin to gzip it on ungzip it for me by passing the ftp problem. Unless the admin fouled up in that it should be ok.


"or there are old files in the /tmp/cache, but I guess you didn't forget to clear the cache?"

I did clear the cache.. later in the middle of diagnostics.


"It still seems related to config.php to me."

Possible. And it was possible I wasnt editing the live config.php. No matter, I've copied the contents and nuked the site to rebuild from scratch. Luckly it's a small site and most of the work is done (image work).

Hum.. I'll need to make another practice site to master moving a site to another area (even another directory).


Well, Thanks to all for the suggestions and help.

Re: Website moved.. Errors on page. Wont show.

Posted: Fri Nov 18, 2005 11:11 am
by alfblack
Did I err?

Yup. I grooed.

I was in the middle of re-building the site. I accidentally closed the browser window (DOH)

Now, it's telling me..

Site down for maintenance.

I cant continue with the installation. I was thinking of nuking the config.php to restart installation but it's still a zero byte file. What should I do?

Re: Website moved.. Errors on page. Wont show.

Posted: Fri Nov 18, 2005 1:24 pm
by Ted
If it's a 0 byte file, the installer should be starting on it's own.

I'm not quite sure where you are at.  You have a site in the database, but the install is messed up?

Re: Website moved.. Errors on page. Wont show.

Posted: Fri Nov 18, 2005 2:48 pm
by alfblack
I'm sorry if I was not clear.

I have pointed my browser to the site. Installer started up ok. Everything checked out ok. I'n my excitment. I accidentally closed the window.

WHen I re-opened the browser and pointed it to the site. It shows me the maintenance message. I guess it was in the middle of it but got cut off.

I need to know how to "restart" the installation process. Any semaphore file to delete? or something.

Re: Website moved.. Errors on page. Wont show.

Posted: Fri Nov 18, 2005 3:14 pm
by Ted
Oh, ok.  That makes sense.

tmp/cache/SITEDOWN is the file you need to remove.  It's normally done after install is complete.

Re: Website moved.. Errors on page. Wont show.

Posted: Sat Nov 19, 2005 5:40 am
by alfblack
Site rebuild is going fine now. :D thanks again.

Checking the tar the admins made on my windows machine. It does seem the archive is incomplete. :( But I dont know if it's just because of winrar. I've experinced this before. The tar archive is actually complete but windows winrar cant completely untar it.

*sigh* I miss my nix machine since it died due to hardware failure.