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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • [FIXED] New wordpress install of 4.5 beta 5 has a few problems.
Pages: [1] 2 3

Author Topic: [FIXED] New wordpress install of 4.5 beta 5 has a few problems.  (Read 6324 times)

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
[FIXED] New wordpress install of 4.5 beta 5 has a few problems.
August 07, 2014, 06:44:06 am
Installed 4.5 beta 5 supposedly successfully  (got a green message saying successful install) on localhost but a few things aren't working. I am really new to WordPress and (as is well known) essentially a non-techie, so I have no clues about how to check if these things are caused by a setting on my system (which is what I presume) or are something to do with the actual wp 4.5 beta 5 source file - but I will try to find out if pointed in the right direction.

Things I have noticed so far:
  • Arrow image broken on administer menu (image attached) Also applies to other places it should appear on navigation menu
  • Administer>CiviCase>Case Type takes me to a blank screen(Image attached)
  • Administer>System Settings>Debugging and Error Handling.  Can choose Yes for Enable debugging but defaults to No when I save (but Display backtrace saves as Yes)
  • None of the little help symbols that I have tested so far link to anything  - message is always "unable to load help file"
  • I can't do any inline edits.  The edit screen never appears ( although the triangle spins beautifully) and I get the message "Network Error
    Unable to reach the server. Please refresh this page in your browser and try again."
  • I have enabled logging which usually means there is no number on the change log tab and that the change log screen has 5 columns instead of only 2. But those changes aren't apparent even though the logging tables are in the DB and that change I have made since then was logged.
« Last Edit: August 27, 2014, 01:43:04 pm by Coleman Watts »

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: New wordpress install of 4.5 beta 5 has a few problems.
August 07, 2014, 09:51:16 am
Glad you like my spinner - a bit of late-night insomniac inspiration.

Can you ensure that your resource urls and directories settings are correct?

Check the firebug console during ajax requests and see what you see there. My guess is it will be a php warning/notice that's being displayed for no good reason.
Try asking your question on the new CiviCRM help site.

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: New wordpress install of 4.5 beta 5 has a few problems.
August 08, 2014, 06:08:03 am
Hello,

I've installed a fresh Civi 4.5 beta 5 on WP 3.9.2, and I'm having the exact same issues than Joanne.
see my initial post here : http://forum.civicrm.org/index.php/topic,33607.0.html (v4.5 b3 - 07/18)

+ 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). See my initial post : http://forum.civicrm.org/index.php/topic,33594.0.html (v4.5 b3 - 07/18)

+ Cannot use any search box in "Add registration" or "Add new relationship", it keeps searching but no results ( see my initial post : http://forum.civicrm.org/index.php/topic,33599.0.html  (v4.5 b3 - 07/18)

+ Cannot add or remove "Tags" -> "Sorry an error occured and you information was not saved"
see my initial post : http://forum.civicrm.org/index.php/topic,33602.0.html (v4.5 b3 - 07/18)

+  Issue with selecting search results and chosing action to be done
See my initial post : http://forum.civicrm.org/index.php/topic,33597.0.html (v4.5 b3 - 07/18)

+ Issue when trying to use template for a new event >> selecting templates has no consequence (form is not reloaded according to chosen template) (similar issue here : http://forum.civicrm.org/index.php/topic,33600.0.html v4.5 b3 - 07/18)

+ issues when selecting an other address for an event : see my intial post here http://forum.civicrm.org/index.php/topic,33601.0.html (v4.5 b3 - 07/18)

I checked the resource URL + directories settings + path. Nothing
FYI : the base directory is filled in like this : "c:\xampp\htdocs\wordpress/wp-content/plugins\files\civicrm\templates_c\en_US\
I don't know if it makes a difference whether it's "\" or "/" but when I tried to save the path with full "/" or full "\", it keeps it like it is.

Considering all this bugs, I would say it's a no-go to implement this version of 4.5 on a WP site.

Please advise.
Thanks

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: New wordpress install of 4.5 beta 5 has a few problems.
August 08, 2014, 07:08:22 am
@SemperFi - these "many bugs" are all the same problem - inability to complete ajax requests. It is caused by one of two things:

1) Incorrect path settings. You say that your base directory is "c:\xampp\htdocs\wordpress/wp-content/plugins\files\civicrm\templates_c\en_US\ " but that looks wrong to me - that's the directory of your template cache, not the base at all.

2) PHP notices: In Wordpress if PHP notices are enabled they can sometimes interfere with ajax. You should disable them in your php.ini configuration.

You can very easily see which of these is causing the problem by looking at your firebug console. Each ajax request will pop up as an item in the console, and if you click on it you'll see the response. If it's a "not found" sort of response then #1 is the cause; if you see PHP errors then it's #2.
Try asking your question on the new CiviCRM help site.

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: New wordpress install of 4.5 beta 5 has a few problems.
August 09, 2014, 07:00:35 am
Hello Coleman,

Thanks for reply.

I tried to change the "new base directory"
from C:\xampp\htdocs\wordpress\wp-content\plugins\files\civicrm\templates_c\en_US\
to c:\xampp\htdocs\wordpress\wp-content\plugins\files\ (as explained here : http://wiki.civicrm.org/confluence/display/CRMDOC/Migrating+from+Drupal+to+WordPress)
But even if I saved the change, it is not taken into account, and remains with "\civicrm\templates_c\en_US\" at the end.

I checked in the DB and did not find any field with this value. Only the "civicrm_settings.php" file contains this data as value for "CIVICRM_TEMPLATE_COMPILEDIR" / FYI $civicrm_root = 'C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\civicrm\\civicrm\\';
 which seems to be good.

Regarding the error with AJAX, you were right, it's case #1 "Object not found" - Bugzilla is returning this information when I tried to search for "BACH" :

Code: [Select]
Warning: CRM.url called before initialization
Object not found!
The requested URL was not found on this server.
The link on the <a href="http://localhost/wordpress/wp-admin/admin.php%3fpage=CiviCRM&q=civicrm/admin&reset=1">referring page</a> seems to be wrong or outdated.

Could you please advise how to proceed ?
Thanks

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: New wordpress install of 4.5 beta 5 has a few problems.
August 09, 2014, 07:14:33 am
Quick question Coleman, do you know why the quick search bar is displayed only half of it's normal height size ? See enclosed.
Thanks

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: New wordpress install of 4.5 beta 5 has a few problems.
August 09, 2014, 07:18:41 am
The quicksearch bar was getting messed up by wordpress css. I've fixed it in the next beta.

There's definitely something wrong with your paths, but what?
The lack of CRM.url initialization is troubling -- this should be done by your l10n script. View page source and search for the string 'civicrm/dynamic/l10n'. That should show you a <script> tag. I assume the src in that tag is wrong. What is it? What happens if you click on it?
Try asking your question on the new CiviCRM help site.

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: New wordpress install of 4.5 beta 5 has a few problems.
August 09, 2014, 08:37:30 am
Thanks for the CSS patch

I got this when looking for dynamic/l10n in code source for this page : http://localhost/wordpress/wp-admin/admin.php?page=CiviCRM&q=civicrm/contact/search&reset=1

<script type="text/javascript" src="http://localhost/wordpress/wp-content/plugins/files/civicrm/\dynamic/l10n-en_US.js">
</script>

When I click on it, I get :

<h1>Object not found!</h1>
<p>The requested URL was not found on this server.
    If you entered the URL manually please check your
    spelling and try again.
</p>

Might there be an issue with /\ ?
« Last Edit: August 09, 2014, 08:39:47 am by SemperFi »

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: New wordpress install of 4.5 beta 5 has a few problems.
August 09, 2014, 08:43:17 am
Issue is certainly there, because looking at the WP sandbox, the correct URL is :
<script type="text/javascript" src="http://wordpress.sandbox.civicrm.org/wp-content/plugins/files/civicrm/dynamic/l10n-en_US.js">
</script>

How should I fix it ?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: New wordpress install of 4.5 beta 5 has a few problems.
August 09, 2014, 08:46:25 am
Seems to be a windows issue, the backslash is very dos.
That url is constructed using your image upload path - can you check that there are no backslashes in that path?
Go to Administer -> System Settings -> Resource URLs.
Try asking your question on the new CiviCRM help site.

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: New wordpress install of 4.5 beta 5 has a few problems.
August 09, 2014, 08:52:18 am
URLs are :
CiviCRM Resource URL  : http://localhost/wordpress/wp-content/plugins/civicrm/civicrm/
Image Upload URL : http://localhost/wordpress/wp-content/plugins/files/civicrm/persist/contribute/

Even with this set URL remains src="http://localhost/wordpress/wp-content/plugins/files/civicrm/\dynamic/l10n-en_US.js">

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: New wordpress install of 4.5 beta 5 has a few problems.
August 09, 2014, 09:07:25 am
OK I think I got it. Can you test this fix:
https://github.com/civicrm/civicrm-core/pull/3810
Try asking your question on the new CiviCRM help site.

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: New wordpress install of 4.5 beta 5 has a few problems.
August 09, 2014, 09:15:05 am
Thanks Coleman, I tried the fix and it seems to correct the /\ issue as code source is correct now :
<script type="text/javascript" src="http://localhost/wordpress/wp-content/plugins/files/civicrm/dynamic/l10n-en_US.js">
</script>

But I don't have a "dynamic" folder in "c:/xampp/htdocs/wordpress/wp-content/plugins/files/civicrm/"
How is it possible that this folder is missing ?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: New wordpress install of 4.5 beta 5 has a few problems.
August 09, 2014, 09:31:18 am
Ok that seems to come back to your path settings
Administer -> System Settings -> Directories
The "Images" directory should match the "Image Upload URL" at Administer -> System Settings -> Resource URLs
And by "match" I don't mean they should be the same, because one needs to be an internal path for the file system and the other an external url for access by a web-browser. But they should both end in "civicrm/persist/contribute/"
Try asking your question on the new CiviCRM help site.

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: New wordpress install of 4.5 beta 5 has a few problems.
August 09, 2014, 09:39:46 am
Image Upload URL is : http://localhost/wordpress/wp-content/plugins/files/civicrm/persist/contribute/
Images directory path is : C:\xampp\htdocs\wordpress\wp-content\plugins\files\civicrm\persist\contribute\

Pages: [1] 2 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • [FIXED] New wordpress install of 4.5 beta 5 has a few problems.

This forum was archived on 2017-11-26.