News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Package Manager Installs NOT working

Started by Rockymcg, September 20, 2010, 05:33:02 AM

Previous topic - Next topic

Rockymcg

When I apply the mod or install it I get a blank white screen and the url ends with the filename.zip of whatever I've been installing. It's happening numerous times, it first started in 1.1x when I attempted to upgrade to 2.0 and when I realized where I went wrong with the install and did the install correctly (I hope) it is still doing the same. Help :)

xenovanis

Any errors in your log from around the time you tried to install a modification?
Admin -> Maintenance -> Logs -> Errorlog
"Insanity: doing the same thing over and over again and expecting different results."

Rockymcg

#2
This is the one that happens when I clilck to install a mod:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 24 bytes) in /home6/oakgrov2/public_html/forum/Sources/Subs-Package.php on line 2714

any mod. I just happend to try and install my Portal and this is what happened here.

I refreshed the page and it told me I had already done it so I went back and it took me to the page to install it again giving me the option to install it for the rest of the items. I clicked to install for the rest of the themes. The previous errors had been not finding a directory in themes/core so I created it. Same one again upon reinstalling it, there are 5 pages with different graphics for only this theme. It had no problem with the other themes.

Today at 06:32:21 AM
6530954add8f68bb4e7d68cb145abd17
Type of error: General
http://www.oakgrovehome.com/forum/index.php?action=admin;area=packages;sa=install2;package=SimplePortal_2.3.2.zip;pid=02: copy(/home6/oakgrov2/public_html/Sources/Themes/core/images/sp/star2.png) [<a href='function.copy'>function.copy</a>]: failed to open stream: Not a directoryFile: /home6/oakgrov2/public_html/forum/Sources/Subs-Package.php
Line: 1689

The other error upon installation:
Today at 06:32:21 AM
6530954add8f68bb4e7d68cb145abd17
Type of error: Undefined 
http://www.oakgrovehome.com/forum/index.php?action=admin;area=packages;sa=install2;package=SimplePortal_2.3.2.zip;pid=08: Undefined index: themeFile: /home6/oakgrov2/public_html/forum/Sources/Packages.php
Line: 935

Error when I uninstalled it prior to reinstalling:
Today at 06:28:47 AM
6530954add8f68bb4e7d68cb145abd17
Type of error: Undefined 
http://www.oakgrovehome.com/forum/index.php?action=admin;area=packages;sa=uninstall2;package=SimplePortal_2.3.2.zip;pid=18: Undefined index: themeFile: /home6/oakgrov2/public_html/forum/Sources/Packages.php
Line: 935

Hope it helps. :)

xenovanis

This is weird:
/public_html/Sources/Themes/core/

There is no Themes directory in the Sources directory. For some reason however, the installer thinks there is.

Could you run repair_settings and make sure to click all blue links to correct paths and urls? Don't forget to save after you're done!

What is repair_settings.php?

After running that, in Admin -> Configurations -> Themes and Layout -> Theme Settings, hit the "Attempt to reset all paths" at the bottom of the page.
"Insanity: doing the same thing over and over again and expecting different results."

Rockymcg

#4
I did what you said above and tried to uninstall one of my mods (not to the portal) to see if it helped and I still get this:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 75 bytes) in /home6/oakgrov2/public_html/forum/Sources/Subs-Package.php on line 2714
line 2714 in that file:
         $stat = stat($dir . '/' . $entry);

Rockymcg

Ya know this whole thing has just become so frustrating that I took another web friends advice and dumped my entire web forum folder (or so I thought) since I had lost most of my previous posts and members information and not found a way to get it back.

I did a complete install of 2.0 instead of the upgrade to fix what I thought was whatever was causing ALL the issues and when I got my forum back my info and the posts, boards that I had this time around was there.

I install Simple portal again and do not get the previous error I had been getting but once again do get this:
Today at 01:49:53 AM
5f70deb5457556f505cc353eac69830a
Type of error: General 
http://www.oakgrovehome.com/smf/index.php?action=admin;area=packages;sa=install2;package=SimplePortal_2.3.2.zip;pid=02: copy(/home6/oakgrov2/public_html/forum/Themes/DVP-Smoke-Machine/images/sp/gold.png) [<a href='function.copy'>function.copy</a>]: failed to open stream: Not a directoryFile: /home6/oakgrov2/public_html/smf/Sources/Subs-Package.php
Line: 1689 

xenovanis

Is your packages directory writable? It should be 777, but if that isn't working it might also be 755 or 750. In addition, try creating a directory named temp within the packagedirecory and make sure that's writable as well.

How do I chmod? / what is chmod?
"Insanity: doing the same thing over and over again and expecting different results."

Rockymcg

I made a temp directory and it is at 777 and the packages directory is at 777.

One thing I had noticed in installing my themes-it goes to install the file into the /sp/ directory in most of theme and it never creates the directory, it is actually a text file named sp. When I go to create a directory named sp it says there is already a directory with that name.

xenovanis

Did you use repair_settings and correct the themesettings like I suggested before?
"Insanity: doing the same thing over and over again and expecting different results."

Rockymcg

Yes. Everything matches what it says in the repair setting.php.

I've had red x's  (when the themes are active that I got the above error message with-that was one of 5 pages) where the /sp/ directory is supposed to be and those graphics were supposed to be. I renamed that file sp1 in all of the theme's directories that it was giving me an error and copied the directory from the simple portal directory to those themes. The error messages are gone and red x's. I've installed another mod just to see if I'd get another message and no error message. I get no more error messages with the protal or themes and the red x's are gone.

I don't know if that was the right thing to do and it might be a temporary fix.

xenovanis

So, this is fixed now? Looks like the Themes directory, or the directories inside that weren't writable so the sp images directory couldn't be added by the mod.
"Insanity: doing the same thing over and over again and expecting different results."

Rockymcg

what it was calling a directory was actuall a file. I don't know why it did it this way. At this point I don't care. Well I guess I will when it says it wants that file back eh? It installed it that way for a reason.

Everything was correct like you said except that directory being a file. I made a directory and it works now. It works now so for now no issues. I guess I will see how it goes and pray for no issues. :) Thanks for the help.

Marking as solved.

Advertisement: