Error on installing theme.

Started by Random Username, January 20, 2023, 02:45:50 PM

Previous topic - Next topic

Random Username

Themes/temp/theme_info.xml): Failed to open stream: No such file or directory

Any ideas?

Thank you

Diego Andrés

What theme are you trying to install?

SMF Tricks - Free & Premium Responsive Themes for SMF.

Kindred

is the theme named temp?

Is there a theme_info.xml in the theme archive that you are trying to install?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Random Username

No, I named the theme Dark. Yes, I copied and altered a theme_info.xml file from two different themes. Both failed the same way. I don't know why it's looking for a folder named temp. I tried clearing the cache. But I have caching turned off anyway at the moment and smf caching was set to use a directory named cache, not temp.

Thank you Kindred.

Kindred

You are attempting to install a theme using the theme manager?

Please attach the theme archive that you are trying to use.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Random Username

Yes I am using the theme manager to upload a zip folder. This is the error I get on upload "SMF was unable to find any valid information within the package-info.xml file included within the Package. There may be an error with the modification, or the package may be corrupt" in addition to the error I mentioned in the error log: /Sources/Subs-Themes.php (Line 253)

Type of error: General
Error message Select
2: file_get_contents(.../public_html/Themes/temp/theme_info.xml): Failed to open stream: No such file or directory

The theme works if simply placed in the themes directory, except for the thumbnail preview in SMF Packs CMS mod. I figured the reason that the thumbnail didn't work and the default theme kept showing in the available theme list for members to select even when unchecked as on the available list was because I didn't install it through the theme manager. Line 253 of Subs.Themes.php reads $theme_info_xml = new xmlArray(file_get_contents($path . '/theme_info.xml'));

This is what I used the second time for an xml file:

<theme-info xmlns="http://www.simplemachines.org/xml/theme-info" xmlns:smf="http://www.simplemachines.org/">
<id>Dark</id>
<!--   The theme's version   -->
<version>1.0</version>
<install for="2.1 - 2.1.99"/>
<name>Dark</name>
<author name="Dark"/></author>
<website>https://custom.simplemachines.org/</website>
<!--   Template layers to use, defaults to "html,body".   -->
<layers>html,body</layers>
<!--   Templates to load on startup. Default is "index".   -->
<templates>index</templates>
</theme-info>



TwitchisMental

Quote from: Kindred on January 20, 2023, 03:00:29 PMPlease attach the theme archive that you are trying to use.
This would help us help you a bit better.

You can delete the attachment after we find the issue if you are worried about others having it.

Random Username

I've decided to hold off on this since I am still making changes to the default theme. I will share when complete, including some special goodies I think people will like.

Thank you

Advertisement: