Jump to content

App compiling: issues with resources


LaCollision

Recommended Posts

Hi!

I'm compiling an app that has resources in its dev directory. (for instance myapp/dev/resources/front/myfolder1/myfolder2/…).

But I'm facing a very annoying issue: randomly, resources are not compiled in the /uploads/set_resources directory… so they are not accessible.

It's giving me headaches!

I don't know what to do… Have you ever experienced such an issue?

It may looks like it's because my dev/resources directory has subfolders in it, but I'm not sure. It's so random 😭

Thanks for your help! 🙏🏼

Link to comment
Share on other sites

  • 2 weeks later...
On 9/24/2018 at 6:52 PM, bfarber said:

Are the resources missing from your app export, or is exporting your app timing out or similar?

Hi,

The resources are missing from the app export, but only after a certain point.

 

Here are the explanations of what happens:

- At first, everything works well 🙂 

- Then, each time I compile my app, my resources are duplicated, but only for the Default Theme (ID # 1) (weird ?). The "manage resources" page of the Default theme contains my app resources duplicated as many times as I have compiled my app.
This issue only happens for the Default theme (ID #1), and not for my personal customized theme.

- everything works well until I have recompiled my app maybe 50 or 100 times – at this time, the Default Theme has maybe 150 pages of resources, containing my app resources duplicated many times.

- Then, when reaching this point, the app export starts to not contain my theme resources anymore – maybe because of the bug above.

 

For everything to work again, I've found a workaround:

- I delete the Default Theme (ID #1).

- I recreate a new Default Theme. But there is another bug in Invision about having deleted the Theme ID #1 (I can't compile my app anymore). So, I've also found another workaround, that I've explained in this topic:

 

 

That's a lot of issues 🤯

Thanks for your help,

 

Link to comment
Share on other sites

8 minutes ago, bfarber said:

I'm trying to get a grasp on the issues you are facing here. It sounds like the real problem is that when you compile your application, it's duplicating any resources that are imported into the default theme. If that were resolved, then your overall issues are resolved, is that right?

Hi!

Yes absolutely, it looks like the root of all Evil! :happy:

Then, the 2nd Evil is maybe being unable to compile the app when the Default Theme with ID #1 has been deleted :ph34r:

Thanks!

Link to comment
Share on other sites

  • 1 month later...

Is there any solution for this? I am missing images from my resource folder as well.

Can I upload them manually somewhere to resolve the issue right now? 

Sorry, I have tested it on the old version of the board, mea culpa. In the newest version (4.3.6) works as designed.

Link to comment
Share on other sites

I'm having problems here that seems to be related to this. Sometimes when I install new application or plugin, several images of the theme disappear.

To work around the problem always before installing new application I make a backup of the theme. If the images disappear, I restore the backup I made and everything returns to normal.

Note I use the IPS default theme with minor modifications.

Link to comment
Share on other sites

I have the same as DSyste. It's as if most/all images in the theme's resources get deleted. It doesn't happen when installing/updating every plugin or app, and I'm not even 100% sure it's only when installing/updating a plugin/app or if it happens for some other reason. I did open a support ticket about it, but was told to wait till it happens again, and to then not restore any missing images, so that they can investigate it... the problem with that is, that whilst waiting for them to investigate, I'll be missing images (such as the profile cover image, etc), it's not a big deal but would be a slight annoyance.

Link to comment
Share on other sites

10 minutes ago, LaCollision said:

Great, thank you!

Is the bug of not being able to compile an app without a theme id = 1 also fixed?

Thanks again

I did not make any changes related to that (it's quite the task even getting my development environment to that point tbh without breaking other things), but honestly my guess is you just need to go create a constants.php and define 'DEFAULT_THEME_ID'. This is set to 1 by default, but if your default theme is different because you deleted id 1, then you need to adjust this.

Link to comment
Share on other sites

12 minutes ago, bfarber said:

I did not make any changes related to that (it's quite the task even getting my development environment to that point tbh without breaking other things), but honestly my guess is you just need to go create a constants.php and define 'DEFAULT_THEME_ID'. This is set to 1 by default, but if your default theme is different because you deleted id 1, then you need to adjust this.

 

That's an easy workaround!

Great, thank you! 🤗

Link to comment
Share on other sites

  • 1 month later...

Is there anyway to fix this in the mean time? I am compiling my application and missing several resources from the set_resources folder. Also, it is effecting my clients. The theme.xml contains all the appropriate resources, but from some reason, they are missing resource in their set_resources folder as well.

Link to comment
Share on other sites

  • 2 months later...
On 11/20/2018 at 3:51 PM, bfarber said:

The bug LaCollision reported is fixed for 4.4. I'm not certain if it's the same issue you are reporting here.

 

Hi @bfarber,

Thanks!

I can confirm that in 4.4, compiling an app doesn't duplicate all the app resources in the default theme. 🎉

However, I now have another bug: when I compile my app, all my app resources disappear from my custom theme… and my app resources are only present in the default theme.

The only fix that I've found is to remove my custom theme, and re-import it. However, as soon as I recompile my app, all my app resources again disappear from my custom theme (but not from the default theme).

So it appears that we now have the original bug in reverse 🙂

Do you have an idea about where this could come from?

Thank you for you help!

Link to comment
Share on other sites

3 hours ago, bfarber said:

My recommendation is to submit a ticket. I happened to get a notification of your reply and see this, but you should report issues through the ticket system so we can ensure they are properly addressed.

 

Yes, thank you! 

I tried to open one 😅

Ticket #1032609

 

Apparently, it may have been corrected in 4.4.2, but not for sure.

Thanks!

Link to comment
Share on other sites

  • 3 months later...

I had the issue right now after installing a new app. Large amount of theme resources have disappeared. I had to reupload the theme to solve the issue. Unfortunately opening a ticket and waiting for investigation is not an option here. It's large community with lot of users that see the site "corrupted" without resources.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...