ElementHelper icon indicating copy to clipboard operation
ElementHelper copied to clipboard

Current status

Open JayCarney opened this issue 8 years ago • 11 comments

Hi, just wondering where this project is at as I haven't seen any new releases in the extras repo (I've been using an old version with some patches to work with 2.4.x)

JayCarney avatar Oct 21 '15 04:10 JayCarney

Hi @JayCarney you can download the latest build from a couple weeks ago here - https://www.dropbox.com/s/5x627zz1cnq1rxw/elementhelper-2.0.0-alpha-3.transport.zip?dl=0

I've been using it for awhile and it's been working well for me. The only thing left to really do before releasing it to the extras repo is write some tests and documentation. Try it out and let me know if you've got any feedback :)

roryg avatar Oct 21 '15 12:10 roryg

Installed this and it just deleted all my chunks. This has happened in other versions too, is there a way to 'clean' the element_sync.json file and have it rebuild chunks from my static files?

rodoneill avatar Nov 08 '15 23:11 rodoneill

I've had this issue a couple times and need to work out a way proper way to prevent it from happening. In the meantime if you delete the element_sync.json file it should resync the chunks using the static files.

roryg avatar Nov 08 '15 23:11 roryg

I deleted it but it's not resyncing anything now. I can't even manually create a static chunk, it just says an error occurred while saving.

rodoneill avatar Nov 08 '15 23:11 rodoneill

My database says the modx_site_htmlsnippets table is marked as crashed and should be repaired.

Repairing the table seems to have fixed up my site, pages are rendering again and my chunks appear in the manager, however the element_sync.json file is not being changed when I make changes - it does however update if I create new chunks.

rodoneill avatar Nov 08 '15 23:11 rodoneill

Hmm interesting, I'm not sure what the cause might be yet. Uninstalling and reinstalling the plugin might help. Can you remember what you were doing when this happened so I can try to recreate it?

roryg avatar Nov 09 '15 09:11 roryg

I think I may have moved some of them from the root chunks directory into a subfolder/category folder as I do recall some of the chunks being recreated in the chunk root folder after they were moved. This was a few days ago though so it's odd that they would get deleted today.

rodoneill avatar Nov 09 '15 09:11 rodoneill

@JayCarney Could you share us what are the fixes you're talking to get ElementHelper 1.3.3 working with MODX 2.4.2 ? @roryg What is the rather stable version of ElementHelper working with MODX 2.4.2 ? I've to launch a new website in less than a week and I'm facing some big troubles with ElementHelper 1.3.3.

jchirschy avatar Dec 17 '15 09:12 jchirschy

2.0.0-alpha-3 linked above is the latest version. I've used it to build a few sites and it works well in my experience but there may be edge case issues like above so I would recommend keeping backups while you work just in case.

roryg avatar Dec 17 '15 10:12 roryg

Any further progress on this?

sottwell avatar Apr 28 '16 17:04 sottwell

Sorry for the super late reply @jchirschy basically to get 1.3.3 working in 2.4.x and above, I just swapped all referances to the depreciated modx time fucntion to php's native microtime function in my element_helper plugin file, you should be able to just copy and paste this gist into your element_helper plugin within the manager.

Sorry it's not packaged as a new version of the extra. I have a base MODX install I use for all new sites, so I've never really needed a packaged version

JayCarney avatar Apr 29 '16 00:04 JayCarney