WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Pods CMS] Install Problems (45 posts)

  1. Cristiano
    Member
    Posted 3 years ago #

    Hi There,
    I am anxious to try this plugin out, but I can´t activate it! When I do it, I get a blank screen with this URL:
    http://mywebsite/wp-admin/plugins.php?action=activate&plugin=pods%2Finit.php&plugin_status=all&paged=1&_wpnonce=2ef4d6380c

    After that, my admin area is out:
    PHP Warning: copy(E:mywebsite/.htaccess) [function.copy]: failed to open stream: Permission denied in E:mywebsite\wp-content\plugins\pods\init.php on line 85

    Any help?
    Thanks!!!

    http://wordpress.org/extend/plugins/pods/

  2. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    Are you running PHP version 5 or above? Also, do you have permalinks enabled on your WordPress? It also appears you're running your site on a Windows-based host which could be one reason why permalinks aren't setup to run.

    For Windows-based WP sites, I always recommend this if no other Rewrite is installed: http://www.helicontech.com/isapi_rewrite/

  3. Cristiano
    Member
    Posted 3 years ago #

    Yes, you are right, the problem is with the windows-based host!
    I´m using it now on a linux-based host and everything is ok!
    Thanks!

  4. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    Glad you were able to figure it out. Just don't forget that Pods can work on Windows, it just requires URL rewriting capability to be installed.

  5. Cristiano
    Member
    Posted 3 years ago #

    Hey Sc0tt,
    Thanks for your help. I underestand it works on windows, but I think its not so easy to configure it... I´m just begginning the project, so it´s easy to choose to use a linux server.

    Now I have another problem:
    I just created my first pod, its ok. When I try to add new content on my pod, I can fill the fields, but it doesn´t work when I click "save changes"... any help?

    Thanks!

  6. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    What are the permissions set on your wp-content folder?

  7. Cristiano
    Member
    Posted 3 years ago #

    777

  8. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    Those permissions have been known to cause issues with AJAX. Try setting it to 755?

  9. Cristiano
    Member
    Posted 3 years ago #

    it appears like finished (on browse), with the "save changes" button gray, but nothing happens

  10. Cristiano
    Member
    Posted 3 years ago #

    Ah, ok. I will try it!

  11. Cristiano
    Member
    Posted 3 years ago #

    the same...

  12. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    Could you send an e-mail to contact@podscms.org with a login to your WP by chance? I can then login and take a look and see if there's anything else that could be going wrong.

  13. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    Everything is working for me. Could you clear your cache and attempt again?

  14. Cristiano
    Member
    Posted 3 years ago #

    Sent!

  15. Cristiano
    Member
    Posted 3 years ago #

    Its curious, because I realize it works with one Pod but doesn´t work with the other...

    Please, try it with "Disciplinas"... it´s a Pod.

  16. Cristiano
    Member
    Posted 3 years ago #

    I think I found the problem... it´s something with the "paragraph text" field. When I delete this field on the pod setup, it works well. When I create it again, it doesn´t work...

  17. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    I'll check that out, will let you know what I find out.

  18. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    It appears that having a column named "desc" interferes with the Paragraph text WYSIWYG editor javascript. This is an issue that will be completely fixed going forward after Pods 2.0, but for now you'll want to avoid it. "desc" is a class that's referenced in the form and is the internal name for the Paragraph text column type.

    Outside of this, let me know if you have any further issues.

  19. Cristiano
    Member
    Posted 3 years ago #

    Yes, that was the problem. With so many names to choose, I used the forbidden one! hehe now its ok! Thanks!

    One more issue:
    I underestand the "permalink" is auto-generated when you don´t define it. I´m using the "Monday by Noon" tutorial:http://mondaybynoon.com/2010/01/04/pulling-pods-data/

    When I try to pull the permalink, it comes empty. The code is basically that:

    <?php
      $pesquisas = new Pod('pesquisas');
      $pesquisas->findRecords('name ASC');
      $total_pesquisas = $pesquisas->getTotalRows();
    ?>
    
    <?php if( $total_pesquisas>0 ) : ?>
      <ul>
        <?php while ( $pesquisas->fetchRecord() ) : ?>
    
        <?php
        // set our variables
        $pesquisa_slug    = $pesquisas->get_field('permalink');
        ?>
    
        <li>
          <a href="<?php echo get_permalink(); ?><?php echo $pesquisa_slug; ?>/">
          <?php echo $pesquisa_nome; ?>
          </a>
        </li>
        ...

    But the <?php echo $pesquisa_slug; ?> doesn´t get anything...
    I´m doing something wrong? Its a .htaccess problem or something like that? My normal wp permalinks are working well...

  20. Cristiano
    Member
    Posted 3 years ago #

    I forgot to put here the set of the $pesquisa_nome but it is ok on the code. $pesquisa_nome = $pesquisas->get_field('name');

  21. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    Did you add the permalink after you added items to your pod? Permalinks are generated on saving a pod item, and are not retroactively set when adding the column after you have existing pod items.

  22. Cristiano
    Member
    Posted 3 years ago #

    Tried both:
    $pesquisa_slug = $pesquisas->get_field('permalink');
    and
    $pesquisa_slug = $pesquisas->get_field('slug');
    Nothing happens... do I need to have a permanlink field on the slug to work?

  23. Cristiano
    Member
    Posted 3 years ago #

    sorry, I mean "do I need to have a permanlink field on the POD to work?"

  24. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    You need to have a permalink / slug field (named whatever you need) before you can use it. You can only have one field of that type on a Pod.

  25. Cristiano
    Member
    Posted 3 years ago #

    hummm... it´s a little bit dangerous, imagining that the customer isn´t familiar with it and he will have a blank field that he should never fills it...

    Is there any chance to have it invisible to the user/customer?

  26. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    Definitely, try installing Pods UI - http://wordpress.org/extend/plugins/pods-ui/

    You can then setup a new plugin using code like found on this page:

    http://ui.podscms.org/user-guide/pods_ui_manage/

    You can also check out the Pods UI Demo plugin that's included with Pods UI.

  27. Cristiano
    Member
    Posted 3 years ago #

    Cool! I will try it! :)

    I have another issue:
    Its already generating the slug and finding the pod page (with a template). But I get a fatal error:
    Fatal error: Call to a member function get_field() on a non-object in /myweb.com/wp-content/themes/default/template_cadapesquisa.php on line 20

    The line 20 on the template file is the first set of variables:
    $pesquisa_id = $pesquisas->get_field('id');

  28. Cristiano
    Member
    Posted 3 years ago #

    The complete template page code:

    <?php
    
    /* Template Name: Cada Pesquisa */
    
    get_header(); ?>
    
      <?php
    
        $found_pesquisa = false;
    
        global $pods;
        $pesquisa_slug  = pods_url_variable(-1);
        $pesquisa       = new Pod('pesquisas', $pesquisa_slug);
    
        if( !empty($pesquisa->data ) )
        {
          $found_pesquisa = true;
    
          // set our variables
          $pesquisa_id      = $pesquisas->get_field('id');
          $pesquisa_nome    = $pesquisas->get_field('name');
          $pesquisa_data    = $pesquisas->get_field('data');
          $pesquisa_arquivo = $pesquisas->get_field('arquivo');
    	  $pesquisa_slug    = $pesquisas->get_field('permalink');
    
          // data cleanup
          $pesquisa_arquivo = $pesquisa_arquivo[0]['guid'];
        }
      ?>
    
      <div id="content" class="narrowcolumn" role="main">
    
        <?php if( $found_pesquisa ) : ?>
    
          <div class="post" id="post-<?php echo $pesquisa_id; ?>">
            <h2><?php echo $pesquisa_nome; ?></h2>
            <div class="entry">
              <h4><?php echo $pesquisa_data; ?></h4>
              <?php if( !empty( $pesquisa_arquivo ) ) : ?>
                <a href="<?php echo $pesquisa_arquivo; ?>"><img src="http://www.cristianoandrade.com.br/nutrittion/wp-content/themes/default/images/download-icon.png" alt="Download arquivo da Pesquisa <?php echo $pesquisa_nome; ?>" /></a>
              <?php endif ?>
            </div>
          </div>
    
        <?php else: ?>
    
          <div class="post">
    	    <h2>Pesquisa n&atilde;o encontrada</h2>
    	    <div class="entry">
    	      <p>Desculpa, essa pesquisa n&atilde;o foi encontrada</p>
    	    </div>
    	  </div>
    
        <?php endif ?>
    
      </div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
  29. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    You are referencing $pesquisas for your Pod, but then you're using $pesquisa when you define your Pod. Try using one of the two for your variable name across the board.

  30. Cristiano
    Member
    Posted 3 years ago #

    Thats true! Sorry!
    Thank you again

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags