News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

1.7 upgrade problems

Started by Bobn, November 10, 2008, 07:02:49 PM

Previous topic - Next topic

Bobn

Hello,

Ive upgraded one of my 1.6 boards with no problem but the second I keep getting this error:

8: Undefined index: package_readme

Anybody have any ideas?  Thanks!

Oldiesmann

What file and line is that error associated with?

It's likely either a missing language string or a package that didn't include a readme.

Bobn

#2
Quote from: Oldiesmann on November 10, 2008, 07:36:39 PM
What file and line is that error associated with?

It's likely either a missing language string or a package that didn't include a readme.


1. Execute Modification smf_1-1-6_to_1-1-7_patch.mod Modification parse error

8: Undefined index: package_readme
File: /home/mywebsite.com/httpdocs/forum/Sources/Packages.php
Line: 294


And here is Line 294:
$context['package_readme'] = nl2br($context['package_readme']);

Bobn

Should I delete line 294?

$context['package_readme'] = nl2br($context['package_readme']);

Bobn

Nope, deleting that line didnt help :(

Oldiesmann

Don't delete that line as it will prevent the readme for a package from displaying properly.

As far as I can see, that error occurs when you try to install or uninstall a package that doesn't have a readme.

Put that line of code back in, then replace the line above it (the "else") with this:

elseif(!empty($context['package_readme']))

That will prevent the error.

Bobn

Quote from: Oldiesmann on November 10, 2008, 08:46:19 PM
Don't delete that line as it will prevent the readme for a package from displaying properly.

As far as I can see, that error occurs when you try to install or uninstall a package that doesn't have a readme.

Put that line of code back in, then replace the line above it (the "else") with this:

elseif(!empty($context['package_readme']))

That will prevent the error.


Thanks!

Tried that and still get these errors:

1. Execute Modification smf_1-1-6_to_1-1-7_patch.mod Modification parse error

And all of these in the logs;

 
QuoteBob   Today at 08:51:53 PM 
myip     f4f01cab341dd8e5b5af09ceca0a3def 
http://www.mysite.com/forum/index.php?action=packages;sa=install2;package=smf_patch_1.0.15_1.1.7_14.zip 
2: file_get_contents(/home/mysite.com/httpdocs/forum/Packages/temp/./smf_1-1-6_to_1-1-7_patch.mod): failed to open stream: Success
File: /home/mysite.com/httpdocs/forum/Sources/Packages.php
Line: 542

   Bob   Today at 08:51:53 PM 
myip     f4f01cab341dd8e5b5af09ceca0a3def 
http://www.mysite.com/forum/index.php?action=packages;sa=install2;package=smf_patch_1.0.15_1.1.7_14.zip 
2: file_get_contents(): Unable to access /home/mysite.com/httpdocs/forum/Packages/temp/./smf_1-1-6_to_1-1-7_patch.mod
File: /home/mysite.com/httpdocs/forum/Sources/Packages.php
Line: 542

   Bob   Today at 08:51:53 PM 
myip     f4f01cab341dd8e5b5af09ceca0a3def 
http://www.mysite.com/forum/index.php?action=packages;sa=install2;package=smf_patch_1.0.15_1.1.7_14.zip 
2: copy(): SAFE MODE Restriction in effect. The script whose uid is 10253 is not allowed to access /home/mysite.com/httpdocs/forum/Packages/temp owned by uid 48
File: /home/mysite.com/httpdocs/forum/Sources/Subs-Package.php
Line: 1025

   Bob   Today at 08:51:53 PM 
myip     f4f01cab341dd8e5b5af09ceca0a3def 
http://www.mysite.com/forum/index.php?action=packages;sa=install2;package=smf_patch_1.0.15_1.1.7_14.zip 
2: file_get_contents(/home/mysite.com/httpdocs/forum/Packages/temp/./.htaccess): failed to open stream: Success
File: /home/mysite.com/httpdocs/forum/Sources/Subs-Package.php
Line: 1824

   Bob   Today at 08:51:53 PM 
myip     f4f01cab341dd8e5b5af09ceca0a3def 
http://www.mysite.com/forum/index.php?action=packages;sa=install2;package=smf_patch_1.0.15_1.1.7_14.zip 
2: file_get_contents(): Unable to access /home/mysite.com/httpdocs/forum/Packages/temp/./.htaccess
File: /home/mysite.com/httpdocs/forum/Sources/Subs-Package.php
Line: 1824

Bobn

Perhaps a manual upgrade? Are there instructions anywhere? Thanks!

Oldiesmann

The package manager doesn't work well with Safe Mode enabled. The best option would be to find a better host.

Advertisement: