logo

Member
Member
Offline Offline
Posts: 46
SVN 663: Several errors when opening an article from panel w/FIX

Steps to reproduce:
1. Create an article
2. Add predefined latest articles panel a viewable page
3. Navigate to the page with the panel
4. Select the article title from the panel

You'll get this:
Code:

Warning: include_once(C:!WebServerhtdocs/language/en//Articles.php) [function.include-once]: failed to open stream: No such file or directory in C:!WebServerhtdocsindex.php on line 109

Warning: include_once() [function.include]: Failed opening 'C:!WebServerhtdocs/language/en//Articles.php' for inclusion (include_path='.;C:!WebServerphpPEAR') in C:!WebServerhtdocsindex.php on line 109

Warning: include_once(C:!WebServerhtdocs/language/en/Articles.php) [function.include-once]: failed to open stream: No such file or directory in C:!WebServerhtdocsindex.php on line 114

Warning: include_once() [function.include]: Failed opening 'C:!WebServerhtdocs/language/en/Articles.php' for inclusion (include_path='.;C:!WebServerphpPEAR') in C:!WebServerhtdocsindex.php on line 114
WARNING: no file for "language/en/Articles.php" (check "en")

(Not sure if I touched any of those yet, so just in case line numbers are off, I haven't verified them from the SVN.)

So, lets add a handy-dandy articles language file.

Create and Open
Code:
/language/en/Articles.php


Paste Contents
Code:

<?php
/**
* Article language file.
* English Version
* 25/09/2009 FWishbringer
*/

$ARTICLES_LANG = array();

$ARTICLES_LANG["error_die"]         = '';
$ARTICLES_LANG["title"]             = 'Articles';
$ARTICLES_LANG["theme_title"]       = 'Articles';
$ARTICLES_LANG["body_content"]      = '';
$ARTICLES_LANG["no_cat_defined"]    = 'No article categories defined.';

?>


And poof, no more errors.

Now, to make use of it...

Open:
Code:
/Layouts/Articles.php


Find:
Code:

      $title ='Articles';
      $body = theme('title', "Articles") . theme('start_content');


Replace With:
Code:

      $title = $ARTICLES_LANG["title"]  ;
      $body = theme('title', $ARTICLES_LANG["theme_title"]  ) . theme('start_content');


Find:
Code:

         $body .= 'No article categories defined';


Replace With:
Code:

         $body .= $ARTICLES_LANG["no_cat_defined"];


There appears to be no other language elements in the Articles.php file. The things relating to comments and ratings are going to need added to the Functions language file.

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: SVN 663: Several errors when opening an article from panel w/FIX

Fixed

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Designer
eoCMS Designer
Offline Offline
avatar
Posts: 1290
tbarkass_willamson@hotmail.com
Re: SVN 663: Several errors when opening an article from panel w/FIX

This bug has been deemed [Fixed] by an eoCMS developer. If you dispute the Fix, please PM a developer, giving details of why. This topic can then be unlocked allowing for further discussion.

Seen a bug? Report it!

Jump to:


0.07 seconds Queries: 14