Error in new custom-dev plugin

More
12 years 2 months ago - 12 years 2 months ago #35263 by igcorreia
I am trying to make a new plugin simple.

Followed tutorial but I keep having the same error oveer and over again. Don't know what I am doing wrong.
Code:
Notice: Undefined variable: className in /var/www/mysite/components/com_flexicontent/classes/flexicontent.helper.php on line 3046 Warning: in_array() expects parameter 2 to be array, null given in /var/www/mysite/components/com_flexicontent/classes/flexicontent.fields.php on line 1572 Warning: in_array() expects parameter 2 to be array, null given in /var/www/mysite/components/com_flexicontent/classes/flexicontent.fields.php on line 1573 Warning: in_array() expects parameter 2 to be array, null given in /var/www/mysite/components/com_flexicontent/classes/flexicontent.fields.php on line 1574 Warning: in_array() expects parameter 2 to be array, null given in /var/www/mysite/components/com_flexicontent/classes/flexicontent.fields.php on line 1575
Last edit: 12 years 2 months ago by igcorreia.

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #35264 by igcorreia
It is an empty field for now!

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #35265 by igcorreia
All custom plugin we made in the past are broken with the same error. :/

Solving for one I can probably make it work for all.

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #35266 by igcorreia
Does the CLASS and FUNCITION name need to be 100% igual to the field name?

example:
my field name: plg_companyname_pagenav_new.php

In the PHP file the only way I dont get the error is if the class and function look like:
Code:
class plgFlexicontent_fieldsplg_companyname_pagenav_new extends JPlugin

if I change to:
Code:
class plgFlexicontent_fieldsPlgCompanynamePagenavNew extends JPlugin
or:
Code:
class plgFlexicontent_fieldsPlgcompanynamepagenavnew extends JPlugin
it does not work...

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #35269 by ggppdk
Except for Advanced Search feature,

other changes to the plugins are minor and were done mostly to clear PHP 5.4+ warnings

Please send me a zip archive with the plugin,
and i ll update our FAQ article where it is needed


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #35349 by igcorreia
DAM I LOST MY SESSION - lost all tutorial :(

Well I have it working.

I removed "plgFlexicontent" and It is a must have for it to work.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.739 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save