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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • [WP] Quick search box & menu pictures not working after upg. 4.5 [Fix proposed]
Pages: [1] 2

Author Topic: [WP] Quick search box & menu pictures not working after upg. 4.5 [Fix proposed]  (Read 2648 times)

SemperFi

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 3
  • CiviCRM version: 4.5.4
  • CMS version: Wordpress 4.0.1
  • MySQL version: MySQL 5.5.16
  • PHP version: PHP 5.3.17
[WP] Quick search box & menu pictures not working after upg. 4.5 [Fix proposed]
September 18, 2014, 11:15:50 pm
Hello,
Coleman, maybe you'll read this... hope so
I'm running 4.5 stable release (upg. from 4.4.6) on WP and I'm facing same issue than during testing phase => http://forum.civicrm.org/index.php/topic,33783.0.html

  • Arrow image broken on administer menu (image attached) Also applies to other places it should appear on navigation menu
  • I can't do any inline edits.  The edit screen never appears ( although the triangle spins)
  • I cannot use the quick search box at the top left, no results are showing up whatever the number of letters I put there (normal contact search is working)
...

URLs are :
CiviCRM Resource URL  : http://localhost/gdc/wp-content/plugins/civicrm/civicrm/
Image Upload URL : http://localhost/gdc/wp-content/plugins/files/civicrm/upload/
Images directory : D:\xampp\htdocs\gdc\wp-content\plugins\files\civicrm\upload

l10n-fr_FR.js file URL is : "http://localhost/gdc/wp-content/plugins/files/civicrm/dynamic/l10n-fr_FR.js?r=v2WDD">" but when I look for it (without ?r=v2WDD) it doesn't find it.

Also there are some issues reported by Firebug see enclosed.

And when simply click on "Save" in "Settings - Cleanup Caches and Update Paths" page.
All resources URL got messed-up :

    CiviCRM Resource URL : http://localhost/gdc/\wp-content/plugins/civicrm/civicrm/
    Image Upload URL : http://localhost/gdc/\wp-content/plugins/files/civicrm/upload/
    Extension Resource URL : http://localhost/gdc/\wp-content/plugins/files/civicrm/custom_ext/

I need to manually change "/\" by "/" -
I'm a bit disappointed that all these issues reppear when upgrading!

Can you please help ?

« Last Edit: September 20, 2014, 01:15:19 am by SemperFi »

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: [WP] Quick search box and menu pictures not working after upg. 4.5
September 19, 2014, 10:36:47 am
Yea I really thought we fixed all that.
OK one more try...
Try asking your question on the new CiviCRM help site.

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: [WP] Quick search box and menu pictures not working after upg. 4.5
September 19, 2014, 12:40:43 pm
Coleman, I think we have a double effort going with this thread http://forum.civicrm.org/index.php/topic,34218.0/topicseen.html.  I was going to tackle some testing and debugging over the weekend on Windows servers in general, are you planning or have you already started work on this issue?  I just don't want to duplicate efforts that are already in place (and if there is a patch I should apply prior to testing I will).
« Last Edit: September 19, 2014, 12:51:58 pm by danc »
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: [WP] Quick search box and menu pictures not working after upg. 4.5
September 19, 2014, 12:58:27 pm
danc: Nope I'm about out of ideas and don't have a windows box to test on. Please be my guest. I think you'll find what you're looking for in CRM/Utils/File.php and CRM/Core/Resources.php
Try asking your question on the new CiviCRM help site.

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: [WP] Quick search box and menu pictures not working after upg. 4.5
September 19, 2014, 01:58:50 pm
Thank you Coleman, I appreciate the places to start :)
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

SemperFi

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 3
  • CiviCRM version: 4.5.4
  • CMS version: Wordpress 4.0.1
  • MySQL version: MySQL 5.5.16
  • PHP version: PHP 5.3.17
Re: [WP] Quick search box and menu pictures not working after upg. 4.5
September 20, 2014, 01:10:46 am
Hello guys

Think, I found the issue.
In my case the "l10n-fr_FR.js" file is stored in "wp-content\plugins\files\civicrm\upload\dynamic", but there is a htaccess file in "\upload" directory that contains :

Code: [Select]
<Files "*">
  Order allow,deny
  Deny from all
</Files>

and it prevents accessing the js file from url : http://localhost/gdc/wp-content/plugins/files/civicrm/upload/dynamic/l10n-fr_FR.js

If I remove the htaccess file, then I can access the JS file and all issues are fixed in Civi (quick search, inline editing, pictures in menu...). But this solution represents a security breach because you can access the "upload" folder content now.

So what I did is to keep the htaccess file as is in the upload folder and put a new one in the "dynamic" folder with "Order allow, deny / Allow from all" instructions in it. It fixed the problem.

What do you think ? Is it a satisfying solution ?

Concerning the "/\" when clicking "Update path", issue still ongoing but Dan will look at it.

cfusch

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.6.6
  • CMS version: Drupal 7.39
  • MySQL version: 5.6.23
  • PHP version: 5.4.38
Re: [WP] Quick search box & menu pictures not working after upg. 4.5 [Fix proposed]
October 19, 2014, 11:17:57 am
Can I jump into this, too, please? 

I have the broken images problem on linux/Drupal (see attached).  Mine are okay on my development system, but the live system is having problems with the menu images. I'm on CiviCRM 5.0.

I don't have the same directory structure on linux/Drupal as Semper Fi, but the htaccess is interesting.  where might I look on my platform to see if I also have the htaccess?

Carl

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: [WP] Quick search box & menu pictures not working after upg. 4.5 [Fix proposed]
October 19, 2014, 01:43:54 pm
This issue ought to be completely solved for all CMSs by upgrading to 4.5.2 (and maybe do an extra cache clear for good measure).
Please upgrade before posting again.
Try asking your question on the new CiviCRM help site.

cfusch

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.6.6
  • CMS version: Drupal 7.39
  • MySQL version: 5.6.23
  • PHP version: 5.4.38
Re: [WP] Quick search box & menu pictures not working after upg. 4.5 [Fix proposed]
October 19, 2014, 02:54:32 pm
Hey, Coleman!  I will do that ...

Off I go.

Carl

abcounties

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.6.6
  • CMS version: Wordpress
  • MySQL version: ?
  • PHP version: ?
Re: [WP] Quick search box & menu pictures not working after upg. 4.5 [Fix proposed]
November 09, 2014, 12:37:12 pm
This seems to be the most relevant topic for my problem.

I have the arrow images, so that is not my problem. What is my problem, is that when I use the search box, the loading indicator spins around happily, but nothing happens. If I press return, I get the search results. So, in my own words the "quick search" function is not working. This becomes more problematic when trying to link contacts/orgainsations  since nothing ever appears in the "start typing name..." box.

I am using the Wordpress version, and upgraded to 4.5.2, and this is when I started having problems. I upgraded to 4.5.3 today and still have a problem. Is there a database field I can correct or something? I am sure there must be a simple solution.

If I understand correctly, to clear the cache you go to Administer > System Settings >Clean Up Caches and Update Paths? If this is the case, I have cleaned the caches numerous times.

Everything else that I need is working fine.

Please let me know if you have any ideas or think this should go somewhere else...

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: [WP] Quick search box & menu pictures not working after upg. 4.5 [Fix proposed]
November 09, 2014, 12:52:46 pm
One of the common solutions to this is to disable error display in your php.ini settings.
You can tell if this is your problem by inspecting the results of the ajax call in your console. If it starts with a php error or warning, then that is what's breaking the javascript.
On "live" servers, php error should always be sent to a log file rather than printed directly on the screen.
Try asking your question on the new CiviCRM help site.

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
Re: [WP] Quick search box & menu pictures not working after upg. 4.5 [Fix proposed]
December 13, 2014, 05:56:11 am
Quote from: abcounties on November 09, 2014, 12:37:12 pm
I have the arrow images, so that is not my problem. What is my problem, is that when I use the search box, the loading indicator spins around happily, but nothing happens. If I press return, I get the search results. So, in my own words the "quick search" function is not working. This becomes more problematic when trying to link contacts/orgainsations  since nothing ever appears in the "start typing name..." box.

I have the same problem on WP 4.01 and Civi 4.5.4. It's more than just the quick search, it's any place with a similar field. For example, several drop downs in the search builder. I know that there are several threads here about this and similar problems, but none of those solutions have helped me. :(

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: [WP] Quick search box & menu pictures not working after upg. 4.5 [Fix proposed]
December 13, 2014, 10:53:15 am
Please report on the ajax results from your console as well as any error messages.
Try asking your question on the new CiviCRM help site.

abcounties

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.6.6
  • CMS version: Wordpress
  • MySQL version: ?
  • PHP version: ?
Re: [WP] Quick search box & menu pictures not working after upg. 4.5 [Fix proposed]
January 07, 2015, 11:05:43 am
Sorry, just to confirm - is the console you speak of something I find in CiviCRM or access via cPanel?

For some reason I cannot find a php.ini file. It should presumably be in my top-most directory. I have contacted the web host support about that.

I just upgraded to 4.5.5 and the quick search still does not work. I will reply when I have some error information to feed-back to you.

Thanks.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: [WP] Quick search box & menu pictures not working after upg. 4.5 [Fix proposed]
January 07, 2015, 11:32:14 am
I mean the console in your web browser. F12 should open it.
Once it's open, try your search again and the console will show you any error messages.
Try asking your question on the new CiviCRM help site.

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • [WP] Quick search box & menu pictures not working after upg. 4.5 [Fix proposed]

This forum was archived on 2017-11-26.