Giter VIP home page Giter VIP logo

gwcode-ee3-ee4-ee5's People

Contributors

ignetic avatar t1mwillis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gwcode-ee3-ee4-ee5's Issues

Function create_function() is deprecated

Good ol' PHP7 and EE5. This error is being thrown when using sort, specifically line 1385

usort($this->categories, create_function('$a,$b','return strnatcasecmp($a["'.$col_name.'"],$b["'.$col_name.'"]);'));

I tried manually changing it as per search results directed but everything I tried just spat out more errors. ie.

usort($this->categories, function($a, $b){'return strnatcasecmp($a["'.$col_name.'"],$b["'.$col_name.'"])';});

Any suggestions greatly appreciated :)

Error with php 7.3 and EE 6.x

Error Caught
Call to a member function getFrontendClass() on null
ee/legacy/libraries/Template.php:1641

Stack Trace: Please include when reporting this error
#0 ee/legacy/libraries/Template.php(1386): EE_Template->process_tags()
#1 ee/legacy/libraries/Template.php(560): EE_Template->tags()
#2 ee/legacy/libraries/Template.php(228): EE_Template->parse('{!-- ra:0000000...', true, 1, false)
#3 ee/legacy/libraries/Template.php(1070): EE_Template->fetch_and_parse('common', 'page_footer', true, 1)
#4 ee/legacy/libraries/Template.php(602): EE_Template->process_sub_templates('{!-- ra:0000000...')
#5 ee/legacy/libraries/Template.php(228): EE_Template->parse('{!-- ra:0000000...', false, 1, false)
#6 ee/legacy/libraries/Template.php(163): EE_Template->fetch_and_parse('', Array, false)
#7 ee/legacy/libraries/Core.php(647): EE_Template->run_template_engine('', '')
#8 ee/legacy/controllers/ee.php(53): EE_Core->generate_page()
#9 [internal function]: EE->index()
#10 ee/ExpressionEngine/Core/Core.php(251): call_user_func_array(Array, Array)
#11 ee/ExpressionEngine/Core/Core.php(111): ExpressionEngine\Core\Core->runController(Array)
#12 ee/ExpressionEngine/Boot/boot.php(161): ExpressionEngine\Core\Core->run(Object(ExpressionEngine\Core\Request))
#13 index.php(164): require_once('...')
#13 index.php(164): require_once('...')

Only if I enable gwcode_categories.

Error caused with single quotes in cat_name

I found an issue where a if a single quote is entered in the Category Name field within the categories, example [Mum's Stuff]. This causes a an error which appears to do with the template parsing.

EE: v5.4.0
GWCode Categories: 3.0.0

The error is:
Fatal error: Maximum execution time of 90 seconds exceeded in .../system/ee/EllisLab/ExpressionEngine/Library/Parser/AbstractLexer.php on line 105

Category image manipulations

Thanks for your work on this add-on!

It would be very helpful if it could use category image manipulations. In my tests, the images are created, but the add-on can't output them.

custom_fields="yes" cause PHP 7 error

Hi,

I want to get category's custom field with this code:

{exp:gwcode_categories cat_id="1" style="linear" custom_fields="yes"}
{cat_meta_keywords}
{/exp:gwcode_categories}

But it causing PHP error, thank!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.