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.3 Release Testing (Moderator: pdelbar) »
  • Wordpress installation - problems solutions and more problems.
Pages: [1]

Author Topic: Wordpress installation - problems solutions and more problems.  (Read 2092 times)

CuriousGeorge

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • Semper et ubique gratias agere
    • Latin Mass Society
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7 (and 8!!), Wordpress 4.1.1
  • MySQL version: 5.6
  • PHP version: 5.5
Wordpress installation - problems solutions and more problems.
April 12, 2013, 06:57:37 am
Installed Civi 4.3.0 on Wordpress 3.4.1
Running Centos 5, PHP Version 5.3.23 (1&1 VPS)

Had this problem upon installing CiviCRM:
Quote
CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set
Fixed it by editing the appropriate PHP file as directed on this drupal forum (worked) http://drupal.org/node/1699868

Fixing that problem allowed me to install CiviCRM into WordPress

However, upon opening CiviCRM started to get this error repeatedly:
Quote
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/#mysite#/site2/wp-content/plugins/civicrm/civicrm/CRM/Utils/File.php on line 530
so I pull File.php and here is the offending code (line 530 is the one with arrows):

Code: [Select]
static function findFiles($dir, $pattern) {
    $todos = array($dir);
    $result = array();
    while (!empty($todos)) {
      $subdir = array_shift($todos);
>>>>>>>foreach (glob("$subdir/$pattern") as $match) {
        if (!is_dir($match)) {
          $result[] = $match;
        }
      }
      $dh = opendir($subdir);
      if ($dh) {
        while (FALSE !== ($entry = readdir($dh))) {
          $path = $subdir . DIRECTORY_SEPARATOR . $entry;
          if ($entry == '.' || $entry == '..' || $entry == '.svn') {
          } elseif (is_dir($path)) {
            $todos[] = $path;
          }
        }
        closedir($dh);
      }
    }
    return $result;
  }

But have no idea how to fix it. The problem produces the error cumulatively, so now I have 40+ lines repeating the error before my content. I could just switch error reporting off and whistle in the dark, but it needs to be fixed. Ideas?

Lastly, upon attempting to install an extension I got this problem:
Quote
You will not be able to install extensions at this time because your installation of PHP does not support ZIP archives. Please ask your system administrator to install the standard PHP-ZIP extension.
Sorted it out (eventually), here is the saga of how to sort it out, for anyone on 1&1 servers:
Firstly find out what packages you do have installed.
Code: [Select]
$ rpm -qa | grep php-devel
$ rpm -qa | grep gcc
If you are on 1&1 you probably won't have either (as I discovered, the long and hard way).
Code: [Select]
yum install php-devel
yum install gcc
Then to install the PHP support of ZIP files needed for CiviCRM extension to work:
Code: [Select]
pecl install zipNavigate to /etc/php.ini and add to Dynamic Extensions:
Code: [Select]
extension=zip.so
Restart PHP service
Code: [Select]
/sbin/service httpd restartThat sorts out the Zip problem.

Found the CiviCRM Extensions part a little counter intuitive - could do with plain English statements such as "to install a third party extension, extract and install into /civicrm/files/civicrm/extensions" or to include an "upload" button which does it for you (instead of Yumming or FTPing).

I have had subsequent problems with the Extensions that I have been trying to install, but I will address that directly elsewhere. Thanks for all the hard work guys.
Semper et ubique gratias agere

CuriousGeorge

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • Semper et ubique gratias agere
    • Latin Mass Society
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7 (and 8!!), Wordpress 4.1.1
  • MySQL version: 5.6
  • PHP version: 5.5
Re: Wordpress installation - problems solutions and more problems.
April 12, 2013, 07:09:21 am
In addition I spotted this one at the bottom of my screen
Quote
Powered by CiviCRM 4.3.0. A newer version (4.3.0 ) is available for download.
  :P lol
Semper et ubique gratias agere

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Wordpress installation - problems solutions and more problems.
April 12, 2013, 12:54:00 pm
Try casting the glob output as an array:
Code: [Select]
foreach ((array) glob("$subdir/$pattern") as $match) {
Let me know if that fixes it and I can push that change into 4.3.1

For the other issue, I filed http://issues.civicrm.org/jira/browse/CRM-12335
Try asking your question on the new CiviCRM help site.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Wordpress installation - problems solutions and more problems.
April 12, 2013, 01:07:58 pm
Please check that issue I linked, I can't reproduce the problem on a "normal" install (from the release tarballs). How did you install your version? (please continue this thread on the issue tracker)
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • Wordpress installation - problems solutions and more problems.

This forum was archived on 2017-11-26.