Page 1 of 2

Error upgrading from 4.0.6 to 4.0.7 on Joomla 4

Posted: 21 Oct 2023, 08:53
by webgobe
The upgrade fails with this error:
Joomla\Filesystem\File::delete: Failed deleting inaccessible file router-old.php
Doublechecked: there is no such file in my filesystem, and ALL files/folders have the correct file ownership and permissions.

Re: Error upgrading from 4.0.6 to 4.0.7 on Joomla 4

Posted: 22 Oct 2023, 18:14
by Jan
Hi, try again with enabled debug mode to see in which file this error is coming from? And to see, which is the path to the router-old.php Such file is not included for long time. :idea:

Jan

Re: Error upgrading from 4.0.6 to 4.0.7 on Joomla 4

Posted: 22 Oct 2023, 18:41
by webgobe
Definitively there is no such file on the server: router-old.php
This is what the installer outputs:
Joomla\Filesystem\File::delete: Failed deleting inaccessible file router-old.php
Before updating ensure that the update is compatible with your Joomla! installation.
You are strongly advised to make a backup of your site's files and database before you start updating.
danger
Error updating component.
Phoca Download is download manager for Joomla! CMS. It includes component, modules and plugins and allows displaying files on website which can be downloaded (previewed, played) by website visitors.
This is what I see in debug:
$_SERVER

array:55 [
"USER" => "webgobec"
"HOME" => "/home/webgobec"
"SCRIPT_NAME" => "/administrator/index.php"
"REQUEST_URI" => "/administrator/index.php?option=com_installer&view=update"
"QUERY_STRING" => "option=com_installer&view=update"
"REQUEST_METHOD" => "GET"
"SERVER_PROTOCOL" => "HTTP/2.0"
"GATEWAY_INTERFACE" => "CGI/1.1"
"REMOTE_PORT" => "65323"
"SCRIPT_FILENAME" => "/home/webgobec/public_html/administrator/index.php"
"SERVER_ADMIN" => "webmaster@webgobe.com"
"CONTEXT_DOCUMENT_ROOT" => "/home/webgobec/public_html"
"CONTEXT_PREFIX" => ""
"REQUEST_SCHEME" => "https"
"DOCUMENT_ROOT" => "/home/webgobec/public_html"
"REMOTE_ADDR" => "78.97.228.211"
"SERVER_PORT" => "443"
"SERVER_ADDR" => "209.59.132.190"
"SERVER_NAME" => "webgobe.com"
"SERVER_SOFTWARE" => "Apache"
"SERVER_SIGNATURE" => ""
"PATH" => "/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin"
"HTTP_HOST" => "webgobe.com"
"HTTP_TE" => "trailers"
"HTTP_SEC_FETCH_USER" => "?1"
"HTTP_SEC_FETCH_SITE" => "same-origin"
"HTTP_SEC_FETCH_MODE" => "navigate"
"HTTP_SEC_FETCH_DEST" => "document"
"HTTP_UPGRADE_INSECURE_REQUESTS" => "1"
"HTTP_COOKIE" => "atumSidebarState=open; _ga_LM8RE64VXQ=GS1.1.1697869713.2.0.1697869713.0.0.0; _ga=GA1.1.1518700235.1692598699; _ga_CHXBNPG173=GS1.1.1697869713.2.0.1697869714.0.0.0; _ga_2BLN31BGWS=GS1.1.1697869417.3.0.1697869417.0.0.0; _ga_3NLK4SGDM0=GS1.1.1697869417.3.0.1697869420.0.0.0; _ga_08HKJ9N3CC=GS1.1.1697967330.27.0.1697967330.0.0.0; _ga_269016637=GS1.1.1697967330.25.0.1697967330.0.0.0; _ga_VX119DWKY6=GS1.1.1696094605.4.1.1696094811.0.0.0; admintools_adminaccess_f41ad916b517145ae5ac6dd7fa8f9438=TU7F7qC115Ac7k1lHGrYt0LtWHZcBYFs.ceVvxFyoeRsIMOGZSkah; _ga_VQR1TR2Z8R=GS1.1.1697992906.6.0.1697992906.0.0.0; _uetvid=4e4a09609a7a11eda9d32753618aa2ea; trustedsite_visit=1; _gid=GA1.2.204347626.1697965209; f3772b14ce2a7074ff58d32c4f81bad7=13ba45935910e5c9efe6cc842114f8ba; dbb01d07d652b3a8302a8dc24947ca86=0a3ae4863c642e806c160712910df493; googtrans=/sv/en"
"HTTP_REFERER" => "https://webgobe.com/administrator/index ... iew=update"
"HTTP_ACCEPT_ENCODING" => "gzip, deflate, br"
"HTTP_ACCEPT_LANGUAGE" => "en-US,en;q=0.5"
"HTTP_ACCEPT" => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"
"HTTP_USER_AGENT" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0"
"proxy-nokeepalive" => "1"
"H2_STREAM_TAG" => "92128-81-51"
"H2_STREAM_ID" => "51"
"H2_PUSHED_ON" => ""
"H2_PUSHED" => ""
"H2_PUSH" => "on"
"H2PUSH" => "on"
"HTTP2" => "on"
"SSL_TLS_SNI" => "webgobe.com"
"HTTPS" => "on"
"HTTP_AUTHORIZATION" => ""
"SCRIPT_URI" => "https://webgobe.com/administrator/index.php"
"SCRIPT_URL" => "/administrator/index.php"
"UNIQUE_ID" => "ZTVW-75PpfFuwJZhwb7BFQAAShQ"
"FCGI_ROLE" => "RESPONDER"
"PHP_SELF" => "/administrator/index.php"
"REQUEST_TIME_FLOAT" => 1697994491.1402
"REQUEST_TIME" => 1697994491
"argv" => array:1 [
0 => "option=com_installer&view=update"
]
"argc" => 1
]

Re: Error upgrading from 4.0.6 to 4.0.7 on Joomla 4

Posted: 23 Oct 2023, 00:20
by Jan
The question is why it insists on deleting a file that doesn't exist.

Do you use automatic update? What if you upload the installation package, e.g. the latest:
https://github.com/PhocaCz/PhocaDownloa ... v4.0.8.zip

Re: Error upgrading from 4.0.6 to 4.0.7 on Joomla 4

Posted: 23 Oct 2023, 09:19
by webgobe
Tried that, is the same result

Re: Error upgrading from 4.0.6 to 4.0.7 on Joomla 4

Posted: 23 Oct 2023, 12:46
by Jan
Are you able to search your directory for strings in files. To search, in which file, there is some instruction about "router-old.php". Before searching in whole Joomla directory, try to search this sting in:

administrator/components/com_phocadownload/phocadownload.xml

If found, try to remove such information before updating.

Jan

Re: Error upgrading from 4.0.6 to 4.0.7 on Joomla 4

Posted: 25 Oct 2023, 16:34
by webgobe
<files folder="site">
<folder>controllers</folder>
<folder>helpers</folder>
<folder>views</folder>
<folder>layouts</folder>
<folder>models</folder>
<filename>index.html</filename>
<filename>phocadownload.php</filename>
<filename>router-old.php</filename>
<filename>router.php</filename>
<filename>controller.php</filename>
</files>

Re: Error upgrading from 4.0.6 to 4.0.7 on Joomla 4

Posted: 25 Oct 2023, 16:39
by Jan
So try to remove this line:

<filename>router-old.php</filename>

and save the file, then try to update.

Jan

Re: Error upgrading from 4.0.6 to 4.0.7 on Joomla 4

Posted: 25 Oct 2023, 16:45
by webgobe
Done, and let me go one step further, now the install dies with this error:
JInstaller: :Install: Error SQL Duplicate column name 'token'
Extension installation stopped.

Re: Error upgrading from 4.0.6 to 4.0.7 on Joomla 4

Posted: 26 Oct 2023, 13:27
by Jan
Hi, hard to say what happened there, maybe you need to install it from scratch again (you can backup the data and files like when migration is done and install completely new instance of Phoca Download and then import the data and files (files for downnload). The same way like migration is done: https://www.phoca.cz/documentation/86-j ... o-joomla-4

Jan