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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • I can't edit photos in wordpress
Pages: [1]

Author Topic: I can't edit photos in wordpress  (Read 652 times)

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
I can't edit photos in wordpress
June 04, 2013, 11:05:21 am
I uploaded a jpg to Wordpress to insert into a blog post. I am trying to edit the image and all of the buttons are deactivated and I think it's because of CiviCRM.

Here is the error message I get at the bottom of the page.

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 607

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: I can't edit photos in wordpress
June 04, 2013, 12:36:28 pm
I wonder if this is the issue as http://forum.civicrm.org/index.php/topic,25845.msg120301.html#msg120301 ? Can you try the fix they suggest below on that page?
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.

haystack

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 2
  • CiviCRM version: 4.n
  • CMS version: WordPress 4.n
  • MySQL version: 5.n
  • PHP version: 5.n
Re: I can't edit photos in wordpress
June 05, 2013, 03:21:03 am
This is a bug in the way the CiviCRM-WordPress plugin detects the admin screen that it is on. It's fixed in my fork of the plugin which you can find here:

https://github.com/christianwach/civicrm-wordpress/tree/master-refactored

If you don't want to replace your plugin with my version, look at CiviCRM_For_WordPress::register_hooks() and CiviCRM_For_WordPress::add_form_button_html() you'll see the changes I made to fix this.

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: I can't edit photos in wordpress
June 06, 2013, 12:41:29 pm
These are great suggestions, but I'm lost when it comes to actually applying the fix. Can someone help?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: I can't edit photos in wordpress
June 10, 2013, 10:17:21 am
haystack, your civicrm.php is completely different from the one that comes with CiviCRM that goes in wp-content/plugins/civicrm/civicrm.php

Where is your file supposed to be?
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.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • I can't edit photos in wordpress

This forum was archived on 2017-11-26.