Page 1 of 1

GetURL() fatal error with admintheme.inc.php

Posted: Sat Jan 29, 2011 9:38 pm
by pixelita
I am posting this problem here because it might not be an installation issue. I have upgraded http://www.welovecmsms.com to 1.9.2. Right now, it's an addon domain at my new web host's server. The server details are here: http://www.welovecmsms.com/phpinfo.php.

The front page says

Code: Select all

Not Found.  The requested URL was not found on this server.
That mystifies me since I was able to drill down deeper into the /install folder and upgrade the site and can get to the login panel as well.

But once I am logged in, I get this error:

Code: Select all

Fatal error: Call to a member function GetURL() on a non-object in /home/USERID/public_html/cmsms/lib/classes/class.admintheme.inc.php on line 137
I've Googled and found one other instance of this exact fatal error message, and was hopeful because the thread said [SOLVED], but apparently it was simply closed b/c the OP provided no useful troubleshooting info.

Here's my .htaccess file:

Code: Select all

Options +FollowSymLinks
RewriteEngine on
RewriteBase /

# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
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
RewriteRule ^News/rss(.+)$ index.php?page=News/rss$1 [S=1]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
<Files 403.shtml>
order allow,deny
allow from all
</Files>
*Could* the fact that this is now running as an addon domain somehow be stinking up the pond?

Meanwhile, I am going to try to work on another CMSMS site this weekend, which hopefully won't give me problems.

Re: GetURL() fatal error with admintheme.inc.php

Posted: Sat Jan 29, 2011 10:44 pm
by Dr.CSS
Since this is an addon domain it most likely is in a subfolder of the root, there for you may have to use the RewriteBase / adding the name of the folder it is in...

Re: GetURL() fatal error with admintheme.inc.php

Posted: Sat Jan 29, 2011 11:05 pm
by pixelita
Nope. That didn't work.

I tried both
RewriteBase /cmsms
and
RewriteBase /cmsms/

Anywhere else it should be changed? I got the server path right in the config.php file:

Code: Select all

home/USERID/public_html/cmsms...

Re: GetURL() fatal error with admintheme.inc.php

Posted: Sat Jan 29, 2011 11:13 pm
by pixelita
I even tried editing this line:

Code: Select all

RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
to

Code: Select all

RewriteRule ^(.*) %{REQUEST_URI}/cmsms [R=301,L]
And then Firefox went crazy putting a bunch of /cmsms/cmsms/cmsms at the end and saying the URL was in a loop that could never complete. (Is that a sick metaphor for this project or WHAT?!)

I'll let this stew awhile and figure something else out, although I don't know what. Thing is I have another CMSMS based site to migrate just as soon as the nameservers are switched, sometime before Monday and I don't want the same problem there. That site is also going to be an addon domain.

Re: GetURL() fatal error with admintheme.inc.php

Posted: Sat Jan 29, 2011 11:15 pm
by pixelita
And let's not forget the file that's causing this fatal error (/lib/admintheme.inc.php). I've pored over that file (but I'm not all that knowledgeable about PHP) and I can't figure out what's wrong. Nothing stands out.

Re: GetURL() fatal error with admintheme.inc.php

Posted: Mon Apr 18, 2011 10:01 pm
by nicmare
did you find a solution for this? haveing the same troubles :-\