Posts by: fly06

Posts: 263
Post: 6695
Topic: memory error in LESS compiler

Some additional infos.

With the RC2 version, the problem happens during the getCss() call :

$compiled = $parser->getCss();

I cannot see any php error (the server just returns a 502 Bad Gateway) but the good news is that a lesscache file is stored in the /data/_cache/ dir.

Note that if I delete this file and reload the page, I get this warning:

Warning: Invalid argument supplied for foreach() in /home/u671512534/public_html/include/thirdparty/less.php/LessCache.php on line 153

Hope this helps.

 

 

6 years ago
Post: 6694
Topic: memory error in LESS compiler

Sorry but the RC2 does not help.

Is there any way to switch the LESS compiler off?

 

 

 

6 years ago
Post: 6690
Topic: memory error in LESS compiler

I have successfully installed gpEasy 4.3 RC1 on a remote server (fly06.w.pw).

But the server returns a '502 Bad Gateway' error.

The problem happens during the 'combine files' loop in the gpOutput::ParseLess() method.

 

 

Edited: 6 years ago
Post: 6678
Topic: [New] SimpleBlogExtended Plugin

Hello,

I have created a new plugin called SimpleBlogExtended which is not a fork of Simple_Blog but is built upon Simple_Blog by extending the Simple_Blog classes.

Once installed, SimpleBlogExtended makes possible to override most of the SimpleBlog html in your current theme.

The plugin is shipped with 4 templates:

  • PostContent_Tmpl.php
  • Comment_Tmpl.php 
  • CommentForm_Tmpl.php
  • NavLinks_Tmpl.php

All of them are located in the plugin /Tmpl/ sub-folder.

How-To-Proceed:

  • Choose a template to override among the ones listed above
  • Copy this template to the /<Theme_color>/html/SimpleBlogExtended/Tmpl/ sub-folder of your current theme
  • Edit the template and tweak/change the html according to your need

And it's done.

The plugin can be downloaded here:
http://www.fly06.fr/download/SimpleBlogExtended.zip

This is a beta version, any feedback is welcome.

6 years ago
Post: 6675
Topic: [Simple Blog] Can't Delete Comment

It works fine now.

Thanks.

6 years ago
Post: 6669
Topic: [Simple Blog] Can't Delete Comment

I cannot delete any comment with Simple_Blog v2.0.5.

It does not work whether it is installed on gpEasy 4.0 or gpEasy 4.3 RC1.

The displayed error message is:

Oops, that didn't work, please try again. (XSS Verification Parameter Mismatch)

The value of $_POST['verified'] is 'undefined'.

 

 

6 years ago
Post: 6665
Topic: maintenance plugin keeps me out of administration

I experienced the same problem.

If for any reason the 'admin' cookie has been deleted there is no easy way to go back to the admin.

You will have to download the plugin config.php file from your ftp, edit it and turn the 'enabled' property to false and upload the modified config.php file to the sever.

Hope this helps.

 

 

6 years ago
Post: 6659
Topic: Agent Type

It works now.

Thanks for your support.

6 years ago
Post: 6654
Topic: Help with minishop

It has been working very well until a few days, for a week, the minishop which should forward the orders to our mail box doesn't work anymore

What have you done on your server and/or your gpEasy install since the last time the shop worked fine?

 

6 years ago
Post: 6648
Topic: [Site Map] Allow Plugin Contribution

[Continuing]

    function makeAddonSiteMap($site_map) {

        global $config, $dataDir;

        echo '<ul>';

        $prev_level = 0;
        $i = 0;
        foreach ($site_map as $link){
            $level = $link['level'];
            $title = $link['title'];
            $label = $link['label'];
            if ($level > $prev_level) {
                $i = 0;
                echo '<ul>';
            } elseif ($level < $prev_level) {
                $i = 0;
                echo '</ul>';
            }
            $class = 'class="li_'.$i.'"';
            echo '<li '.$class.'>'.common::Link($title, $label, '').'</li>';
            $prev_level = $level;
            $i++;
        }

        echo '</ul>';

    }

    function makeAddonSiteMapXml($site_map) {

        foreach ($site_map as $link){

            echo "\n";
            echo '<url>';
            echo '<loc>';
            echo 'http://';
            echo $_SERVER['SERVER_NAME'];
            echo common::GetUrl($link['title']);
            echo '</loc>';
            echo '</url>';

        }

    }

} // class

A "Site Map"-ready plugin should have a Site_Map.php file at the plugin root folder.

This file will return an array of data to be used by both the html and the xml Site Maps.

For instance (dummy file used for testing):

<?php

$site_map = array();

$site_map[0]['label'] = 'My Label 0';
$site_map[0]['title'] = 'My_Title_0';
$site_map[0]['level'] = 0;
$site_map[1]['label'] = 'My Label 1';
$site_map[1]['title'] = 'My_Title_1';
$site_map[1]['level'] = 1;
$site_map[2]['label'] = 'My Label 2';
$site_map[2]['title'] = 'My_Title_2';
$site_map[2]['level'] = 0;

return $site_map;

Hope you like the idea.

 

 

Edited: 6 years ago

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register