astroid-framework icon indicating copy to clipboard operation
astroid-framework copied to clipboard

Is it possible to Export stuff from Template One to Template Two?

Open Giorgi625 opened this issue 1 year ago • 31 comments

I already work with Template one on my websites, but I want to move them to Template Two. Before I remember there was Import/Export Settings option but I can not find it now. I used this feature to move from template Zero to One. So was this feature removed? Is there option to move in one action or should I do it manually?

Giorgi625 avatar Feb 13 '24 13:02 Giorgi625

It is now called "Preset Profiles" at similar location in preferences of Astroid template where "import" and "Export" used to be, where you now can save and import "Presets"

mac-joomla avatar Feb 13 '24 14:02 mac-joomla

I tried this but it does not save. I click on save preset, then add name and description and click on button, it does not do anything. how long should I wait for this?

Giorgi625 avatar Feb 13 '24 16:02 Giorgi625

Does it show in your list of presets? Then you can do an export from this tile. Does this work?

mac-joomla avatar Feb 13 '24 16:02 mac-joomla

It is already 5 minutes after I clicked on Save settings image

Giorgi625 avatar Feb 13 '24 16:02 Giorgi625

ok seems a problem there. Are you on recent versions of templates an framework? Did you try to use another browser or even just restarting the browser and/or computer? In my case it works with Safari 17.3 on MacOS 13.6.4

mac-joomla avatar Feb 13 '24 16:02 mac-joomla

Everything up to date. Joomla 5.0.2 I use mainly Opera. Browser restart did not help. I opened website using Chrome but same thing.

I will try restarting PC. hope it will help.

Giorgi625 avatar Feb 13 '24 17:02 Giorgi625

Good luck, unfortunately for the moment I don't know what to do here…

mac-joomla avatar Feb 13 '24 17:02 mac-joomla

even template save button on top has infinite animation when I click on it, so I guess something is broken on this website. I will just do it manually if it will not work.

Giorgi625 avatar Feb 13 '24 17:02 Giorgi625

did you clear cache?

mac-joomla avatar Feb 13 '24 17:02 mac-joomla

yes I cleared cache

Giorgi625 avatar Feb 13 '24 17:02 Giorgi625

nothing helped on that website, I even uninstalled Astroid fully and installed again but same problem, while on other website it works just fine. I will check how it works on older backups. I do not really want to rebuild whole website again.

Giorgi625 avatar Feb 14 '24 08:02 Giorgi625

@Giorgi625 may you send me your admin via [email protected]? I will help you check it.

sonvnn avatar Feb 14 '24 10:02 sonvnn

Sent

Giorgi625 avatar Feb 14 '24 11:02 Giorgi625

Sorry I make a mistake on my Mobile. My email is [email protected]. May you send me your admin again?

sonvnn avatar Feb 15 '24 02:02 sonvnn

can you confirm if you received my email?

Giorgi625 avatar Feb 16 '24 12:02 Giorgi625

I received your email. I will check it on Monday. I will response you asap

sonvnn avatar Feb 17 '24 04:02 sonvnn

Ok, thank you

Giorgi625 avatar Feb 17 '24 09:02 Giorgi625

@Giorgi625 I fixed the issue on your site. Please help me check it. Thanks

sonvnn avatar Feb 19 '24 08:02 sonvnn

Thank you I will check and share results.

Giorgi625 avatar Feb 19 '24 10:02 Giorgi625

I still have problem. So what I did: I installed backup from January 30th on localhost and saved preset into json file from there. This is preset for Template One which I had installed on my site. I imported this file to website which you fixed. So import feature works fine. Save template also works until I select my preset and after I try to save this arrows on template save button arrows on it just go round and round and do not save template with my preset.

Giorgi625 avatar Feb 19 '24 10:02 Giorgi625

Hey, I still have the problem that I can't transfer my settings from Template Zero to Template Two. I get the following error message:

Preset did not uploaded yet1second ago INVALID FILETYPE

Is it even possible to switch from Zero to Two at the moment? WBR, deltapapa

deltapapa01 avatar Apr 17 '24 16:04 deltapapa01

Hey, @sonvnn did you have an idea, you have the time to update template zero and one to use the new blog feature? I would also switch to template two, but unfortunately the import does not work from template zero. Thank you very much and wbr, deltapapa

deltapapa01 avatar Apr 19 '24 07:04 deltapapa01

Can you send me your admin? I will try to export/import settings to Two.

sonvnn avatar Apr 19 '24 14:04 sonvnn

Hey Sonny, i send you account data from my testsite. When it's working, i want to change all my other sites too.

Thank you and with best regards, deltapapa

deltapapa01 avatar Apr 20 '24 05:04 deltapapa01

@deltapapa01 I am sorry for late reply. I tried to export data from One and import to Two. Astroid works like a charm. Can you send me your admin via [email protected] again? I need to check it on your site.

Best Regards, Sonny

sonvnn avatar Jun 05 '24 04:06 sonvnn

Hi Sonny, Thank you for your feedback. I think I found the problem myself after you wrote that it works for you. I had a hunch about the admin tools, and that's where the problem lies. If I take the standard htaccess of Joomla, it works without problems, if I let the admin tools generate it, I can not upload this profile. I assume I have to add an exception in the htaccess that files can be uploaded to a specific folder, but which folder should I use? image

Maybe you have a solution to the problem?

WBR, deltapapa

deltapapa01 avatar Jun 05 '24 15:06 deltapapa01

I’m Using AdminTools to &Interested in this post.

• @deltapapa01 , are your error was always “INVALID FILETYPE” when exporting/importing? • Did you check your server errors logs, maybe you will have more infos. Strange...

• AdminTools htacees creator block everything not needed by Joomla on creation of the .htacces file, but I never create any exception for Astroid?

• Maybe Astroid Export/Import are asking for a specific folder/file to be readable and accessible? • The FILETYPE error seem to point to something else...?

• Did you try to fix site files/folder permissions in Admintools before trying?

Chacapamac avatar Jun 05 '24 16:06 Chacapamac

Hi, Okay, I've found the solution to my problem. When I use Akeeba Admin Tools, it blocks the correct creation of the present file under: media/templates/site/astroid_template_two/astroid/presets To solve the problem, a rule must be added to the htaccess file that allows access to this folder:

image

Once this is done, the present file will be created correctly, stored under the path. If I now download the file to my PC and then upload it again, everything works without a problem. I had noticed that my present files were only 9KB in size, and the correctly created present files were well over 107kb. I then realized that the files had no content at all, only warnings!

One more small thing: When troubleshooting, I noticed that no debug information is displayed in Astroid Framework. We had this a long time ago, is there a trick? Even if I switch the debug information to Yes in the framework plugin, nothing happens in the template. The same applies to the debug information from Joomla, which is not displayed at all in the Template Manager.

WBR, deltapapa

deltapapa01 avatar Jun 07 '24 06:06 deltapapa01

Great Stuff @deltapapa01 This should be added to the documentation as Akeeba Admintools is THE firewall used by all pro on Joomla.

I just add the exception on my websites. Thanks @sonvnn to share! 👍 🚀

@deltapapa01 you said:

I had noticed that my present files were only 9KB in size, and the correctly created present files were well over 107kb. I then realized that the files had no content at all, only warnings!

• Do you mean that the import/export files are correct or incorrect after the Akkeeba Admin Astroid exception is set?

Chacapamac avatar Jun 08 '24 12:06 Chacapamac

Hi, the import / export Files work fine after set the exception in Akeeba.

deltapapa01 avatar Jun 10 '24 03:06 deltapapa01