CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Frond End Page Template Error with custom post type
Pages: [1] 2

Author Topic: Frond End Page Template Error with custom post type  (Read 4447 times)

MichaelT

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: WordPress 3.4.1
  • MySQL version: 5.5.25
  • PHP version: 5.2.1.7
Frond End Page Template Error with custom post type
August 30, 2012, 08:16:02 am
We have created several custom post types in WP.  When we try to edit those, or add new ones, CiviCRM throws the following error:

"Please select a CiviCRM front-end page type.
Fatal error: Class 'CRM_Core_DAO' not found in /home/aviation/public_html/wp-content/plugins/civicrm/civicrm.php on line 548"

That error causes the edit screen load to fail and you are unable to add or edit the post, add tags/categories, etc.

Any suggestions for getting rid of that?  I'm stumped.

alandarm

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Frond End Page Template Error with custom post type
October 09, 2012, 05:45:58 am
I am having the same issue:

Please select a CiviCRM front-end page type.
Fatal error: Class 'CRM_Core_DAO' not found in /home/magichour/www/www/wp-content/plugins/civicrm/civicrm.php on line 605

Someone, please help us! I have no idea what is happening and this is rendering some of my Wordpress admin features completely unusable.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Frond End Page Template Error with custom post type
October 09, 2012, 05:51:09 am
alandarm, is this also on a custom post type page?

Do regular posts work OK?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

alandarm

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Frond End Page Template Error with custom post type
October 09, 2012, 06:09:21 am
When creating a regular post I still get this message at the bottom of the screen: Please select a CiviCRM front-end page type.

This doesn't cause any functionality issues with Wordpress though.

The problem is when the fatal error appears.

Fatal error: Class 'CRM_Core_DAO' not found in /home/magichour/www/www/wp-content/plugins/civicrm/civicrm.php on line 605

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Frond End Page Template Error with custom post type
October 09, 2012, 06:10:56 am
For which operations does the fatal error appear? For creating a post of a custom type?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

alandarm

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Frond End Page Template Error with custom post type
October 09, 2012, 06:13:42 am
I guess it would be called a custom post.

My theme has the ability to create gallery posts and that's where the issue is. (see attached file)

alandarm

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Frond End Page Template Error with custom post type
October 09, 2012, 06:15:41 am
Here is what line 605 looks like in the civicrm.php file

alandarm

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Frond End Page Template Error with custom post type
October 09, 2012, 06:40:01 am
Could this error be more of a conflict with the Wordpress theme than an issue with Civi?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Frond End Page Template Error with custom post type
October 09, 2012, 08:47:07 am
Definitely could. Can you try another theme?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

alandarm

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Frond End Page Template Error with custom post type
October 09, 2012, 08:50:30 am
Quote from: Hershel on October 09, 2012, 08:47:07 am
Definitely could. Can you try another theme?

I am so invested in my current theme, it would be a big deal to switch. I'm praying the theme developer can help me out.

MulderDSM

  • I post occasionally
  • **
  • Posts: 100
  • Karma: 0
  • CiviCRM version: 4.6.0
  • CMS version: Joomla 3.4.1
Re: Frond End Page Template Error with custom post type
December 14, 2012, 08:55:28 am
I am seeing this same issue on a custom post type. Please advise how to fix.

Please select a CiviCRM front-end page type.
Fatal error: Class 'CRM_Core_DAO' not found in /home/iyc/public_html/wp-content/plugins/civicrm/civicrm.php on line 605

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Frond End Page Template Error with custom post type
December 16, 2012, 02:53:21 am
MulderDSM, do you use a custom theme? Can you try changing that temporarily?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

beenlouis

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
Re: Frond End Page Template Error with custom post type
February 19, 2013, 09:10:54 am
I too am having the same/similar issue when I attempt to resize/scale an image in wordpress:

Please select a CiviCRM front-end page type.
Fatal error: Class 'CRM_Core_DAO' not found in /home/presby/public_html/wp-content/plugins/civicrm/civicrm.php on line 607

I do not have the option to change themes. Any suggestions as to where I can begin to resolve whatever conflict is happening?

Thanks.

eCnet

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
    • 100 Black Men Omaha
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.x
  • MySQL version: latest
  • PHP version: 5.x
Re: Frond End Page Template Error with custom post type
February 23, 2013, 12:32:57 am
I'm getting the same error using WordPress 3.51 and CiviCRM 4.28. I tried changing my theme from MySiteMyWay to WP 2012 Theme and still get the same error.

Please select a CiviCRM front-end page type.
Fatal error: Class 'CRM_Core_DAO' not found in /home/gpblack/public_html/wp-content/plugins/civicrm/civicrm.php on line 607

surfing47

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 1
  • CMS version: Wordpress
  • MySQL version: 5
  • PHP version: 5
Re: Frond End Page Template Error with custom post type
February 24, 2013, 09:29:28 pm
I am getting the same errors:

"Please select a CiviCRM front-end page type.
Fatal error: Class 'CRM_Core_DAO' not found in...

Has anyone found a fix yet?

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Frond End Page Template Error with custom post type

This forum was archived on 2017-11-26.