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) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • Wordpress installation - blank screen
Pages: [1]

Author Topic: Wordpress installation - blank screen  (Read 1756 times)

spateria

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Wordpress 4.1
  • MySQL version: 5.6.24
  • PHP version: 5.3.26
Wordpress installation - blank screen
May 12, 2015, 10:39:40 am
Hello.

I tried installing civi on Wordpress 4.1, and the admin page came up blank when I clicked on the CiviCRM link from the menu bar on the left.

The error message I am getting (by clicking F12, on the console screen) is:

Uncaught TypeError: CRM.url is not a function(anonymous function) @ admin.php?page=CiviCRM:44
admin.php?page=CiviCRM:61 GET https://checkout.google.com/seller/gsc/v2/cart.js?mid=987654321012345
load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-core,jquery-ui-datepicker,jquery…:1 Uncaught TypeError: Cannot read property 'fn' of undefined

This is the code snippet:
<script type="text/javascript">
var CRM = {"config":{"userFramework":"WordPress","resourceBase":"\/wp-content\/plugins\/civicrm\/civicrm\/","lcMessages":"en_US"}};
</script>
<script type="text/javascript">
CRM.url('init', '/wp-admin/admin.php?page=CiviCRM&q=civicrm/example&placeholder');
CRM.formatMoney('init', "$ 1234.56");
</script>

Can someone help me please?
Thanks!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Wordpress installation - blank screen
May 13, 2015, 11:24:27 am
Try disabling your other plugins--looks like one of them is causing a problem.
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.

spateria

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Wordpress 4.1
  • MySQL version: 5.6.24
  • PHP version: 5.3.26
Re: Wordpress installation - blank screen
May 13, 2015, 07:25:25 pm
Thank you for your reply.
I disabled the plugins one by one. At this point, I have only civiCRM as the active plugin

Now I get a different error:
Warning: Smarty error: problem creating directory 'E:/HostingSpaces/cma2011' in E:\HostingSpaces\cma2011\mydomain.org\wwwroot\wp-content\plugins\civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1094

Warning: include(E:\HostingSpaces\cma2011\mydomain.org\wwwroot/wp-content/plugins\files\civicrm\templates_c\en_US\\%%E6\E65\E656EDCD%%wordpress.tpl.php) [function.include]: failed to open stream: No such file or directory in E:\HostingSpaces\cma2011\mydomain.org\wwwroot\wp-content\plugins\civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1264

Warning: include() [function.include]: Failed opening 'E:\HostingSpaces\cma2011\mydomain.org\wwwroot/wp-content/plugins\files\civicrm\templates_c\en_US\\%%E6\E65\E656EDCD%%wordpress.tpl.php' for inclusion (include_path='.;E:\HostingSpaces\cma2011\mydomain.org\wwwroot/wp-content/plugins\civicrm\civicrm\;E:\HostingSpaces\cma2011\mydomain.org\wwwroot/wp-content/plugins\civicrm\civicrm\\packages;.;c:\PHP5.3\pear') in E:\HostingSpaces\cma2011\mydomain.org\wwwroot\wp-content\plugins\civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1264

In the console of the browser however, the original error still shows, CRM.url is not a function.
« Last Edit: May 13, 2015, 07:34:41 pm by spateria »

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: Wordpress installation - blank screen
May 14, 2015, 03:14:14 am
You need to make E:\HostingSpaces\cma2011\mydomain.org\wwwroot\wp-content\plugins\files writable

spateria

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Wordpress 4.1
  • MySQL version: 5.6.24
  • PHP version: 5.3.26
Re: Wordpress installation - blank screen
May 14, 2015, 05:54:02 am
Yes, the folder plugins/files has a 777 permission for all files and folders under it.

Also tried deleting the folder en_US under templates_c.

It still gives the same error message.

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: Wordpress installation - blank screen
May 14, 2015, 08:33:39 am
Have you reviewed civicrm.settings.php and the Resource URLs in Civi admin to make sure they're all as you'd expect them to be?

spateria

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Wordpress 4.1
  • MySQL version: 5.6.24
  • PHP version: 5.3.26
Re: Wordpress installation - blank screen
May 14, 2015, 06:01:27 pm
The settings in civicrm.settings.php are okay.

In the Smarty.class.php, the templates are expected in the folder plugins\files\civicrm\templates_c\en_US\CRM\....

I do not see the CRM folder here. In my installation, the CRM folder exists under plugins\civicrm\civicrm\templates\CRM\....

Was there a problem with the installation?

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: Wordpress installation - blank screen
May 15, 2015, 02:46:58 am
Possibly. It still sounds to me like on of your settings is awry, but if it's a clean install it might be worth reinstalling. If not, I'd be digging through all the possible settings (e.g. "Settings - Upload Directories", "Settings - Cleanup Caches and Update Paths", "Settings - Resource URLs"), trashing E:\HostingSpaces\cma2011\mydomain.org\wwwroot\wp-content\plugins\files\ConfigAndLog\Config.IDS.ini and looking for errors in any of the log files in in that same ConfigAndLog directory.

BTW, which version of Civi are you using?

spateria

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Wordpress 4.1
  • MySQL version: 5.6.24
  • PHP version: 5.3.26
Re: Wordpress installation - blank screen
May 15, 2015, 04:15:36 am
Thanks. Will try to reinstall.
Civil version : 4.4

spateria

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Wordpress 4.1
  • MySQL version: 5.6.24
  • PHP version: 5.3.26
Re: Wordpress installation - blank screen
May 17, 2015, 02:14:44 pm
Tried reinstalling. Same error, no change at all.
Warning: include(E:\HostingSpaces\cma2011\mydomain.org\wwwroot/wp-content/plugins\files\civicrm\templates_c\en_US\\%%E6\E65\E656EDCD%%wordpress.tpl.php) [function.include]: failed to open stream: No such file or directory in E:\HostingSpaces\cma2011\mydomain.org\wwwroot\wp-content\plugins\civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1264

Warning: include() [function.include]: Failed opening 'E:\HostingSpaces\cma2011\mydomain.org\wwwroot/wp-content/plugins\files\civicrm\templates_c\en_US\\%%E6\E65\E656EDCD%%wordpress.tpl.php' for inclusion (include_path='.;E:\HostingSpaces\cma2011\mydomain.org\wwwroot/wp-content/plugins\civicrm\civicrm\;E:\HostingSpaces\cma2011\mydomain.org\wwwroot/wp-content/plugins\civicrm\civicrm\\packages;.;c:\PHP5.3\pear') in E:\HostingSpaces\cma2011\mydomain.org\wwwroot\wp-content\plugins\civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1264

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • Wordpress installation - blank screen

This forum was archived on 2017-11-26.