Results 1 to 9 of 9

Thread: HTML Page Error

  1. #1

    Default HTML Page Error

    Hi Guys,

    I just added an HTML page in my CMPS and got this error:
    Code:
    Warning: filesize(): Stat failed for http://www.tvshoppingworld.com/html/site/about/about.htm (errno=2 - No such file or directory) in /includes/vba_cmps_include_bottom.php on line 422
    
    Warning: fread(): Length parameter must be greater than 0. in /includes/vba_cmps_include_bottom.php on line 422
    The file does exist, as it works fine with a PHP page. Any ideas?

    Many thanks!
    Last edited by Rob Locke; 08-06-2005 at 04:23 PM.

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: HTML Page Error

    You need to enter the path to the file instead of the URL.

  3. #3

    Default Re: HTML Page Error

    Thanks Brian, all sorted out.

    Just one other question...how can I make the default page an HTML page? I have changed it to 'file' instead of 'module', but it automatically makes it a PHP page and I want to insert HTML, not PHP?

    Thanks again,

    Rob.

  4. #4
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: HTML Page Error

    If you'll look in your vba_cmps_admin.php file for this code:
    PHP Code:
                case 'chtype_php_file':
                    
    page 'vba_cmps_admin.php?do=editpage&chtype=php_file';
                    break; 
    Right above that, add this:
    PHP Code:
                case 'chtype_html_file':
                    
    page 'vba_cmps_admin.php?do=editpage&chtype=html_file';
                    break; 
    Then find:
    PHP Code:
                $pagetypes = array(
                    
    '' => $vbphrase['please_select_one'], 
                    
    'chtype_module' => $vbphrase['module'],
                    
    'chtype_php_file' => $vbphrase['php_file'], 
                    
    'chtype_template' => $vbphrase['template'], 
                    
    'chtype_bb_code' => $vbphrase['bb_code']
                ); 
    And replace with this:
    PHP Code:
                $pagetypes = array(
                    
    '' => $vbphrase['please_select_one'], 
                    
    'chtype_module' => $vbphrase['module'],
                    
    'chtype_php_file' => $vbphrase['php_file'], 
                    
    'chtype_html_file' => $vbphrase['html_file'], 
                    
    'chtype_template' => $vbphrase['template'], 
                    
    'chtype_bb_code' => $vbphrase['bb_code']
                ); 
    That should allow you to change the page type.

  5. #5

    Default Re: HTML Page Error

    Thanks Brian, it worked a charm. I hope this will be in the next release/update.

    Best wishes to you and your super team!

    Rob.

  6. #6
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: HTML Page Error

    Yes, it will be. An HTML page was just the last type of page added durning the development and apparently I fogot to update that select box to include that type.

  7. #7

    Default Re: HTML Page Error

    Perfect - always on top of your game! That's why you're so good.

  8. #8

    Default Re: HTML Page Error

    Hi Brian,

    Sorry to bother you yet again, but I just realized there is also no option to 'Add Module' as an HTML file or 'Change Module Type' to an HTML file.

    Can you offer the fix for these two CMPS functions too?

    Many thanks,

    Rob.

  9. #9
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: HTML Page Error

    There is no option for HTML modules. The option is there for pages to allow users to easily integrate a HTML page on their server, but I don't really see the point for that for modules when you can just as easily create a template.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. using html in new page
    By clearchannel in forum "How Do I..." Questions
    Replies: 7
    Last Post: 07-12-2005, 08:26 PM
  2. Custom html page, error messages. stat failed etc
    By Sanjiyan in forum Troubleshooting & Problems
    Replies: 2
    Last Post: 06-30-2005, 09:04 PM
  3. adding new Mod. html> error and blank page for members
    By thenewstlucian in forum Troubleshooting / "How do I..." Questions
    Replies: 5
    Last Post: 02-11-2005, 03:43 PM
  4. html error-gonna be silly
    By frage in forum Troubleshooting / "How do I..." Questions
    Replies: 6
    Last Post: 12-12-2004, 02:15 PM
  5. Basic HTML Page
    By Watson in forum Add-On Modules & Modifications
    Replies: 10
    Last Post: 07-24-2004, 11:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •