missing file in update?

Started by WhiteJC, June 12, 2023, 05:37:58 AM

Previous topic - Next topic

WhiteJC

when I try to update to 2.1.4 I get an error

Error in package installation
At least one error was encountered during a test installation of this package.
It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently.

This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you have not installed yet, or a package designed for another version of SMF.

the "main" error appears to be a missing file...
./cron.php - file not found


I've only got 4 mods installed:
Ad management
Embed tweet bbcode
Stop forum spam
Admin notepad (emulating)

I don't see how these would cause a missing file? can I download this file?

Aleksi "Lex" Kilpinen

cron.php is a file that should be there already, before the update. If it's not there, something is wrong.
You can probably fix this by downloading the 2.1.3 package, and uploading the missing file in place, before running the 2.1.4 update. But if I were you, I'd be wondering what happened to it?
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

WhiteJC

Quote from: Aleksi "Lex" Kilpinen on June 12, 2023, 07:23:44 AMcron.php is a file that should be there already, before the update. If it's not there, something is wrong.
You can probably fix this by downloading the 2.1.3 package, and uploading the missing file in place, before running the 2.1.4 update. But if I were you, I'd be wondering what happened to it?

I've no idea how the file dissapeard
anyhow I've downloaded the 2.1.3 package and copied cron.php over to the forum directory

I now get these errors
54.   Execute Modification   ./cron.php   Test failed
     1.   Replace   ./cron.php   Test failed
     2.   Replace   ./cron.php   Test failed
     3.   Replace   ./cron.php   Test failed
     4.   Replace   ./cron.php   Test failed
     5.   Replace   ./cron.php   Test failed
     6.   Add Before   ./cron.php   Test successful

so it looks like the file needs to be updated to reflect my site?

very strange

the site is working with people posting and replying to each other "as normal"

Aleksi "Lex" Kilpinen

That really shouldn't happen, if you are updating from 2.1.3 to 2.1.4 and are using the file from 2.1.3 it should be exactly what the update is looking for.

Try another way, delete the cron.php - Go ahead with the update ignoring the errors for cron.php, then grab 2.1.4 install package and upload the up to date cron.php from there.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

WhiteJC

I've had a look at what being updated:

1.
* @CopyRight 2022 Simple Machines and individual contributors
* @CopyRight 2023 Simple Machines and individual contributors

2.
* @version 2.1.3
* @version 2.1.4

3.
define('SMF_VERSION', '2.1.3');
define('SMF_VERSION', '2.1.4');

4.
define('SMF_SOFTWARE_YEAR', '2022');
define('SMF_SOFTWARE_YEAR', '2023');

5.
define('JQUERY_VERSION', '3.6.0');
define('JQUERY_VERSION', '3.6.3');

6.
obExit_cron();
exit;
// If we have time, check the scheduled tasks.
if (time() - TIME_START < ceil(MAX_CRON_TIME / 2))
{
require_once($sourcedir . '/ScheduledTasks.php');

if (empty($modSettings['next_task_time']) || $modSettings['next_task_time'] < time())
AutoTask();
elseif (!empty($modSettings['mail_next_send']) && $modSettings['mail_next_send'] < time())
ReduceMailQueue();
}

WhiteJC

Quote from: Aleksi "Lex" Kilpinen on June 12, 2023, 07:37:46 AMThat really shouldn't happen, if you are updating from 2.1.3 to 2.1.4 and are using the file from 2.1.3 it should be exactly what the update is looking for.

Try another way, delete the cron.php - Go ahead with the update ignoring the errors for cron.php, then grab 2.1.4 install package and upload the up to date cron.php from there.

will do

Aleksi "Lex" Kilpinen

That should work, and shouldn't (IMO) cause any further trouble so I'll mark this solved.
If you do run in to further trouble, feel free to mark this unsolved or open a new topic :)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

WhiteJC

Quote from: Aleksi "Lex" Kilpinen on June 12, 2023, 08:08:22 AMThat should work, and shouldn't (IMO) cause any further trouble so I'll mark this solved.
If you do run in to further trouble, feel free to mark this unsolved or open a new topic :)

all OK now

thanks  ;D

Advertisement: