t1mwillis / gwcode-ee3-ee4-ee5 Goto Github PK
View Code? Open in Web Editor NEWA fork of the GWCode module to support EE3+ as well as PHP7
A fork of the GWCode module to support EE3+ as well as PHP7
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 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.
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
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.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.