WordPress.org

Forums

Len Slider
[resolved] Cannot Activate (9 posts)

  1. ItzBlitz
    Member
    Posted 2 years ago #

    Hey Igor,
    Thank you for this excellent plugin but im having problems activating it.

    This is the error im getting,
    http://i.imgur.com/7Ryg9.png

    My PHP version is 5.4.7 if that helps.

    http://wordpress.org/extend/plugins/len-slider/

  2. Igor Sazonov
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, ItzBlitz!
    Sorry for the problem. Really, the problem is about new version of PHP, i'll make a new version soon, now you can edit len-slider/lib/lenslider.class.php:386-397: (remove all ampersands &)

    public function lenslider_replace_att_url($att_id) {
            if($att_id) {
                $retObj            = new stdClass;
                $retObj->absAttUrl = str_ireplace(self::$siteurl."/", ABSPATH, wp_get_attachment_url($att_id));
                $retObj->httpPath  = str_ireplace(ABSPATH, '/', $retObj->absAttUrl);
                $size_array        = @getimagesize($retObj->absAttUrl);
                $retObj->size      = $this->lenslider_size_str($size_array[0], $size_array[1]);
                $retObj->mime      = $size_array['mime'];
                return $retObj;
            }
            return false;
        }

    but i dont guarantee about plugin will works well, ok, i'll make a fix soon. Sorry again..

  3. Igor Sazonov
    Member
    Plugin Author

    Posted 2 years ago #

    LenSlider 1.1 available, hope the one works with PHP 5.4+ well =)

  4. carboneri
    Member
    Posted 2 years ago #

    Hi Igor!

    Thanks in advance, and sorry for my english.
    I reading all posts now, but I can't resolve my problem.

    I really like the LenSlider. I put the PHP code on my template but nothing change on my website. I have LenSlider v1.1.2

    The code:

    home.php

    <?php get_header(); ?>
    
    <?php if ( 'on' == et_get_option('lucid_featured', 'on') && is_home() ) get_template_part( 'includes/featured', 'home' ); ?>
    
    <?php if( class_exists( 'LenSlider' ) ) {LenSlider::lenslider_output_slider('9256f51f08');}?>
    <?php
    	$recent_sidebars = array('recent-area-1','recent-area-2','recent-area-3');
    	if ( is_active_sidebar( $recent_sidebars[0] ) || is_active_sidebar( $recent_sidebars[1] ) || is_active_sidebar( $recent_sidebars[2] ) ) {
    		echo '<div id="recent-categories" class="clearfix">';
    		foreach ( $recent_sidebars as $key => $recent_sidebar ){
    			if ( is_active_sidebar( $recent_sidebar ) ) {
    				echo '<div class="recent-category' . (  2 == $key ? ' last' : '' ) . '">';
    				dynamic_sidebar( $recent_sidebar );
    				echo '</div> <!-- end .recent-category -->';

    Can you help me?

    rurales.gutierrezlarre.com

  5. Igor Sazonov
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, carboneri! I'll try to hepl You.
    Is Your slider 9256f51f08 enabled in LenSlider admin?
    Do You know your version of PHP?

  6. carboneri
    Member
    Posted 2 years ago #

    Thanks, a lot.

    Yeah, my slider is enabled, but I can't see when I put "Preview".

    My version oh PHP is 5.2.17 (my host). Any solution?

  7. Igor Sazonov
    Member
    Plugin Author

    Posted 2 years ago #

    LenSlider version is 1.1.3 ? Please update to the 1.1.3, some fixes there

  8. carboneri
    Member
    Posted 2 years ago #

    Thank you very much! Congratulations for so nice slider, from Montevideo.

  9. Igor Sazonov
    Member
    Plugin Author

    Posted 2 years ago #

    thanks from Russia)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Len Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.