Fatal error: Class 'PDO' not found in /home/lanryco/public_html/html/index.php on line 25

Feed 6 posts, 4 voices

Avatar
15 posts

<p>when i install the cms,it warned that:
Fatal error: Class ‘PDO’ not found in /home/lanryco/public_html/html/index.php on line 25</p>

 
Avatar
15 posts

i installed successfully but when i delete all articles it showed like that Fatal error: Call to a member function link() on a non-object in /home/lanryco/public_html/html/frog/app/frontend/classes/Page.php(170) : eval()'d code on line 5

 
Avatar
1493 posts

If you are using the default installation, I think this should be "line 5":

<h3><?php echo $last_article->link(); ?></h3>

Perhaps the PHP is finding nothing when it expects to have a value? Did you try recreating an Article to see if the error went away?

 
Avatar
1 posts

having the same problem as TS when I deleted all the articles.

is there any solution besides addin a new article???
thx.

 
Avatar
651 posts
  • turn off the archive plugin (since you’re apperently not using it anyway)
  • another solution would be to add a small check to any page (for example “home”) that attempt to use an article. The check should make sure that $last_article variable contains a non-null value which is an object.

(hint: google for “php is_object”)