Firefox rendering issues "No input file specified." - Urgent

3 posts by 3 authors in: Forums > CMS Builder
Last Post: August 5, 2011   (RSS)

Re: [degreesnorth] Firefox rendering issues "No input file specified." - Urgent

By gkornbluth - August 5, 2011

Hi degreesnorth,

I tried reproducing this issue in Firefox (5.0) but can't.

The page looks fine here.

Could it be a "clear the cache issue"?

If you're pulling the URL from a field in your database are you checking for http: on your url with something like from one of the recipes in my CMSB Cookbook http://www.thecmsbcookbook.com:

DISPLAY LINKS ON YOUR WEB PAGE WITHOUT ERRORS


If a link URL is entered into a textfield without an http://, you'll end up with a broken link when you try to follow that link in you viewer.

Here’s how to make sure that your URL’s work, even if the person entering the information doesn’t enter http://

Note: The solution in this recipe is not case sensitive. This means that if you’ve entered HTTP:// , or Http:// the code will still work.

In this example the field containing the URL is called web_site_link_url, and the field containing the link text is called web_site_link_text

An "if" statement is used to check if the URL starts with http:// and if not, it adds one to the beginning of the URL.

So, for a multi-record list viewer, you’d put the if statement before the link code in the viewer like this:
<?PHP if (!preg_match("/^http:\/\//i", $record['web_site_link_url'])) {
$record['web_site_link_url'] = "http://" . $record['web_site_link_url']; } ?>

<?PHP endif ?>

<a href="<?PHP echo $record['web_site_link_url'] ?>"><?PHP echo $record['web_site_link_text'] ?></a>


And for a detail viewer:
<?PHP if (!preg_match("/^http:\/\//i", $yourRecord['web_site_link_url'])) {
$yourRecord['web_site_link_url'] = "http://" . $yourRecord['web_site_link_url']; } ?>

<a href="<?php echo $yourRecord['web_site_link_url'] ?>"><?php echo $yourRecord['web_site_link_text'] ?></a>




Good luck,

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [degreesnorth] Firefox rendering issues "No input file specified." - Urgent

By Djulia - August 5, 2011

Hi,

I had a similar problem with another software.

This has to help me:
http://www.tyssendesign.com.au/articles/cms/expression-engine/no-input-file-specified-problem/

With a little chance!

Djulia