From: Eric B. L. <el...@re...> - 2002-06-27 15:35:44
|
Well, I seemed to have fixed it, but I can't really explain it. All I can guess is that the html doc that seemed to be calling the wrong comp wasn't. Rather mason was loading the last document that I uploaded to my server instead of the correct becuase it was corrupted. I get to that conclusion becuase I did what you suggested in removing all mason calls with some simple html with downbody.comp.html removed. That page loaded correctly. I then tried to put the correct index file back and the page with the simple html remained. I recreated my index file and everything loads correctly! Go figure. I've never heard of a plain-text file getting corrupted when you can read it. I previously uploaded it in ASCII mode, so I know it's not an issue with that. Anyhow, thanks for working through this with me. -Eric Sherrard Burton wrote: > My guess is that it is something simple like the component root being > pointed at the wrong directory, or some configuration changes without > an apache stop/start. A simple test would be to remove all mason calls > from index.html and replace it with some simple, static content. Then, > with /downloads/downbody.comp.html still removed, reload the page. My > guess is that you will still get the mason error. > > Eric B. Leslie wrote: > >> Here's the error page when downbody.comp.html is removed even though >> the main page, doesn't call it. Attached is the full html doc that is >> calling the above component. >> >> *Mason error* >> >> *error in file: * /var/www/mason/obj/index.html >> >> *line 34:* Unable to locate component "/downloads/downbody.comp.html" >> >> *context: * *...* *30:* *31:* <!-- Main Content Section Column --> >> *32:* *33:* '); >> *34:* $m->comp('/downloads/downbody.comp.html'); >> *35:* $_out->(' >> *36:* *37:* <!-- END Main Content Section Column --> >> *38:* *...* >> *component stack: * /index.html >> *code stack: * /var/www/mason/obj/index.html:34 >> >> >> * >> raw_error <http://www.repetios.com/#raw_error> >> >> raw error: * >> error while executing /index.html: >> could not find component for path '/downloads/downbody.comp.html' >> HTML::Mason::Interp::__ANON__('could not find component for path >> \'/downloads/downbody.comp.htm...') called at >> /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 597 >> HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x8d1e45c)', >> '/downloads/downbody.comp.html') called at >> /var/www/mason/obj/index.html line 34 >> HTML::Mason::Commands::__ANON__() called at >> /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Component.pm line 131 >> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8d22954)', >> 'HTML::Mason::Component::FileBased=HASH(0x8d22954)', >> 'HTML::Mason::Component::FileBased=HASH(0x8d22954)') called at >> /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 654 >> require 0 called at >> /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 654 >> HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x8d1e45c)', >> 'HASH(0x8d1e528)', >> 'HTML::Mason::Component::FileBased=HASH(0x8d22954)') called at >> /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 160 >> require 0 called at >> /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 160 >> HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8d1e45c)', >> '/index.html') called at >> /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 914 >> HTML::Mason::ApacheHandler::handle_request_1('HTML::Mason::ApacheHandler=HASH(0x8cb7b08)', >> 'Apache=SCALAR(0x8ca5838)', >> 'HTML::Mason::Request::ApacheHandler=HASH(0x8d1e45c)', undef) called >> at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 560 >> require 0 called at >> /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 560 >> HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x8cb7b08)', >> 'Apache=SCALAR(0x8ca5838)') called at >> /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 1019 >> HTML::Mason::ApacheHandler::handler('Mozilla/5.0 (Windows; U; Windows >> NT 5.1; en-US; rv:1.0rc2) Gecko...', '/', 'Apache=SCALAR(0x8ca5838)') >> called at /dev/null line 0 >> require 0 called at /dev/null line 0 >> >> >> >> Sherrard Burton wrote: >> >>> Could we see the mason error page with the component stack, etc. >>> that results when you remove the file downbody.comp.html and then >>> call the main page? >>> >>>> I'm using the basic basic configuration found in the eg directory. >>>> >>>> # >>>> # Simple Mason configuration via httpd.conf directives. >>>> # >>>> >>>> # Replace with your component root. In simple configurations this is >>>> # the same as your DocumentRoot. >>>> PerlSetVar MasonCompRoot /var/www/html >>>> >>>> # Replace with your data directory, where Mason will put all its >>>> # runtime files. >>>> PerlSetVar MasonDataDir /var/www/mason >>>> >>>> # Load the Mason package. >>>> PerlModule HTML::Mason::ApacheHandler >>>> >>>> # Uncomment the <Location> lines if you only want Mason in a >>>> particular subdirectory. >>>> # <Location /mason> >>>> <FilesMatch "*.html"> >>>> SetHandler perl-script >>>> PerlHandler HTML::Mason::ApacheHandler >>>> </FilesMatch> >>>> # </Location> >>>> >>>> I just use mason for templating and the trouble I'm having is the >>>> following code is calling the wrong component. >>>> >>>> <& /header.comp.html &> >>>> >>>> <!-- Main Content Section Column --> >>>> >>>> <& /body.comp.html &> <!-- END Main Content Section Column --> >>>> >>>> <& /right.comp.html &> >>>> >>>> <!-- Begin Footer --> >>>> >>>> <& /footer.comp.html &> >>>> >>>> <!-- End Footer ---> >>>> >>>> The problem lies at the body.comp.html component. It calls the >>>> component called downloads/downbody.comp.html which isn't >>>> refrenced anywhere in this html file. I've been using mason for >>>> sometime and it's worked problem free until a few days ago where I >>>> was restructuring my template. Every page on my site works except >>>> this one an I'm 100% sure all the files are where they're supposed >>>> to be and are being refrenced correctly. I removed the file >>>> downbody.comp.html to see if it was really refrencing that files >>>> and it did result in an error. I tried restarding the server >>>> thinking that page may be cached somewhere, but that didn't fix >>>> anything. >>>> >>>> Ken Williams wrote: >>>> >>>>>> I have an issue that I'm not sure if it's related to Mason or >>>>>> not. Basically, the wrong component is being called. For example, >>>>>> I'm trying to call '/body.comp.html' and it's calling >>>>>> '/downloads/downbody.comp.html'. I've double checked my code many >>>>>> a time to make sure it's refering to the correct one and it is. >>>>>> Any ideas? >>>>>> >>>>> Show us the setup and the component call, we'll see if there's >>>>> something wrong. >>>>> >> >> -- >> ->Eric<- >> >> Repetio's - Computer News and Reviews >> http://www.repetios.com >> >> >> >> ------------------------------------------------------------------------ >> >> <& /header.comp.html &> <& /body.comp.html &> <& /right.comp.html &> >> <& /footer.comp.html &> > Repetio's - Computer News and Reviews http://www.repetios.com |