Error with Custom Extension

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Bishu
User
Posts: 427

Error with Custom Extension

Post by Bishu »

I was try to start with v2017 extension and I got an error while generating the code as
"Extension disable due to error in loading the extension."

This are the files I am using
1) custom.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<ew-extension name="Custom" version="2017.0.6" type="Custom" author="Custom Author">
<file>custom.zip</file>
<Project>
<Attribute name="RightLogo" type="Boolean" default="False"/>
<Attribute name="LogoPath" type="Text" default=""/>
</Project>
</ew-extension>

2) control.xml
<?xml version="1.0" standalone="yes"?>
<phpmaker.custom date="2017/02/19" version="2017.0.6" desc="custom" author="Custom Author">
<control id="header" type="other" action="change">
<session type="key" value="header_top" action="add"
location="header_top_3" loctype="before"
ifile="customheader.php" />
</control>
</phpmaker.custom>

3) customheader.php
<!--##session header_top##-->
<link rel="stylesheet" type="text/css" href="phpcss/custom.css">
<!--##/session##-->

I am confuse where I have done my error.


mobhar
User
Posts: 11660

Post by mobhar »

Missing "<description></description>" tag below <ew-extension ..> line in "custom.xml" file. Please always refer to the existing extension to overcome your issue.


Bishu
User
Posts: 427

Post by Bishu »

I try putting the description also but get the same error.

1) custom.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<ew-extension name="Custom" version="2017.0.6" type="Custom" author="Custom Author">
<description>
<![CDATA[This Extension is created for Custom.

Note: Custom Extension is not a part of PHPMaker. Please read "Third-Party Tools" in the help file.
]]>
</description>
<file>custom.zip</file>
<Project>
<Attribute name="RightLogo" type="Boolean" default="False"/>
<Attribute name="LogoPath" type="Text" default=""/>
</Project>
</ew-extension>


mobhar
User
Posts: 11660

Post by mobhar »

Double check this code:
<Attribute name="LogoPath" type="Text" default=""/>

There is no "Text" type in PHPMaker Extension. Use "String" instead.


Post Reply