Creating and installing own Plugin Topic is solved

For Joomla! 4.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
Gurkenmus
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Jan 27, 2023 12:33 pm

Creating and installing own Plugin

Post by Gurkenmus » Fri Jan 27, 2023 12:55 pm

Hello together,

i am new to joomla and trying out a lot of things. So i wanted to test creating an own plugin.
So i started very little (i have read the Documentations, many Forums, and so on...).

As i found out, i need an *.xml for installation and *.php for the code.
And there it is, for me it doesnt really have to work 100% at beginning, i only wanted to find out, how to install own plugins. But there is my big problem i cant resolve on my own...

If i load the files in the "tmp" directorie the following error shows up:
https://ibb.co/RcpPgJV

If i upload it as an *.zip the following error shows up:
https://ibb.co/3NGrXS2

I have attached my written xml and php files.

My installation is on a Synology NAS (manual installation, not from synology package). I know the paths are right, because the log is written (nothing useful in here, only the same as in the screenshots).
Privileges were granted like:
sudo chown -R http:http /volume1/web/joomla
cd /volume1/web/joomla
sudo find . -type d -exec chmod 0755 {} \; && sudo find . -type f -exec chmod 0644 {} \;

Would be nice if someones here, who know what i am doing wrong. If i hav read it rigth, i only should need at least this two files (xml and php)....
You do not have the required permissions to view the files attached to this post.
Last edited by toivo on Fri Jan 27, 2023 1:05 pm, edited 2 times in total.
Reason: mod note: moved from 3.x General Questions, changed broken IMG tags to URL tags

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17435
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Creating and installing own Plugin

Post by toivo » Fri Jan 27, 2023 1:28 pm

Welcome to the Joomla forum! This topic has now been moved to the 4.x Coding sub forum.

Your installation package can be installed all right by going to System - Install - Extensions - Upload Package File. No error messages whatsoever. Didn't enable and test the plugin, though. Just a thought, without having a look at the code: usually data like user details are exported using a component or a module, rather than a plugin.

For consistency, use the following line to identify the file and name the PHP file accordingly:

Code: Select all

        <filename plugin="userexport">userexport.php</filename>
BTW, it would be easier in the future to take screenshots and add them as attachments to the post, rather than use some external image services.
Toivo Talikka, Global Moderator

Gurkenmus
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Jan 27, 2023 12:33 pm

Re: Creating and installing own Plugin

Post by Gurkenmus » Thu Feb 02, 2023 12:36 pm

okay thanks, got it now =)


Locked

Return to “Joomla! 4.x Coding”