News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Error in jDownloads after upgrading Joomla to Joomla 4 - [Solved]

Started by philit, 21.08.2023 02:09:12

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

philit

Hi,
I had jdownloads in my joomla 3.10.12 and I wanted to upgrade to Joomla 4.3.x
I created a folder inside my public_html and installed copy of my site. Following all the necessary steps, I manage to upgrade the site to Joomla 4.3.3
However after upgrade, as per jdownloads instructions, I wanted to install jdownloads for joomla 4. But it is giving me errors as attached in the screen shot.
I tried 3-4 times but the same error shows.
Any help is appreciated.
  •  

ColinM

Hi

Did you follow the article
https://www.jdownloads.net/documentation/getting-started-v3-9/upgrading-from-jd3-9-to-jd4
especialy the bit about disabling the jD System plugin?

Have not tried the upgrade of Joomla 3 to Joomla 4 on a 'sub-site' location of php.ini - it might be a challenge.

Also in jD Options- Path Settings-Upload directory path must be an absolute path.
So where it was /home/mysite/public_html/jdownloads now needs to be /home/mysite/public_html/newdir/jdownloads which includes the new directory in the path.

Colin

Colin
Colin M
  •  

philit

Hi Colin,
Yes, I followed the steps given in documentation and disabled System-jdownloads before upgrade. The upgrade to joomla 4.x was successful. The problem is of Jdownloads, which gives the error.
Regarding sub-directory path, I have upgraded couple of site using the same procedure and was successful. I was able to upgrade site and jdownlods for joomla 4, the path error showed up after I installed Jdownloads for joomla 4. And after i changed to correct path to sub directory, it worked fine for other sites. So i don't think that could be an issue. Here, I am not able to install jdownloads for joomla 4 and error pops up.
Any help is appreciated.
Thanks for your time.
- Dax

Quote from: ColinM on 22.08.2023 10:47:40
Hi

Did you follow the article
https://www.jdownloads.net/documentation/getting-started-v3-9/upgrading-from-jd3-9-to-jd4
especialy the bit about disabling the jD System plugin?

Have not tried the upgrade of Joomla 3 to Joomla 4 on a 'sub-site' location of php.ini - it might be a challenge.

Also in jD Options- Path Settings-Upload directory path must be an absolute path.
So where it was /home/mysite/public_html/jdownloads now needs to be /home/mysite/public_html/newdir/jdownloads which includes the new directory in the path.

Colin

Colin
  •  

ColinM

Daso
Did the update of jD4 fail during the 'Update jDownloads' stage?

Also can you temporarily disable any jD modules and try an jD update again please
Colin
Colin M
  •  

philit

Quote from: ColinM on 23.08.2023 15:23:42
Daso
Did the update of jD4 fail during the 'Update jDownloads' stage?

Also can you temporarily disable any jD modules and try an jD update again please
Colin
As per jdownloads upgrade from jD3.9 to jD4 instructions, we just need to disable system-jDownloads and keep content-jDownlods Tags fix 3.9 and perform joomla upgrade. It is not mentioned that we need to disable any other modules.
After the joomla is upgraded to 4.x, we need to install jDownlods for joomla 4. It is during this stage, these errors come.
You can see from the screenshot that its during extension install.
I hope this much information is sufficient to troubleshoot.
  •  

ColinM

Hi
It is the present state, that is after the update to J4 and the updating of the jD  that I am suggesting you unpublish any of the jD modules that might be published. This is not usual but it might help.

I will send you a Private Message - these are secure

Colin
Colin M
  •  

Arno

The first posted error message could be fixed when you try the installation the second time. Have you tried this?

The second error comes from a JRequest() which is not more a part from Joomla 4 and can also not be a part from jD 4.x.  ::)


Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

philit

Quote from: ColinM on 24.08.2023 11:18:11
Hi
It is the present state, that is after the update to J4 and the updating of the jD  that I am suggesting you unpublish any of the jD modules that might be published. This is not usual but it might help.

I will send you a Private Message - these are secure

Colin
I saw three jdownload modules in my joomla 4.x test site, so i unpublished them and tried running the installation again as you mentioned but it gave me same error message.
  •  

Arno

You mean both messages, or only this one about JRequest?

Could I get access to your backend?

Edit:
And after i changed to correct path to sub directory, it worked fine for other sites.
Have you checked or deleted all caching options?

Edit 2:
Only in the old top module of version 3.9.x there is the line 20 with JRequest specified by the error message: 
$Itemid  = JRequest::getVar("Itemid");
Therefore an old jDownloads Top module must still be present!
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

philit

Quote from: Arno on 24.08.2023 12:24:29
The first posted error message could be fixed when you try the installation the second time. Have you tried this?

The second error comes from a JRequest() which is not more a part from Joomla 4 and can also not be a part from jD 4.x.  ::)
Hi Arno,
Let me start by saying 'Thank You' for a great product. I have been using jdownloads for 10+ years on multiple sites without any problem.
Regarding first error message, yes, I tried reinstalling jdownlods multiple times but it gave me the same error.
In one of my other sites, I was able to install jdownloads for j4.x after error message on the second try but not this one.
  •  

philit

Quote from: Arno on 24.08.2023 18:33:48
You mean both messages, or only this one about JRequest?

Could I get access to your backend?

Edit:
And after i changed to correct path to sub directory, it worked fine for other sites.
Have you checked or deleted all caching options?

Edit 2:
Only in the old top module of version 3.9.x there is the line 20 with JRequest specified by the error message: 
$Itemid  = JRequest::getVar("Itemid");
Therefore an old jDownloads Top module must still be present!

sure. I just send login details in PM to ColinM. I can do the same for you once he replies.
Which place exactly you want to disable caching?
Thank you in advance for your time.
  •  

Arno

Hi,
I could now fix your jDownloads 'limits' table and added the missing 6 fields.
After that i was able to update to version 4 without any problems. See pics.

So the problem here should be solved now.
We stay in contact via PM to update also your livesite successful.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ColinM

Arno,
Sounds Good - seems he had a bad table you were able to repair
Colin
Colin M
  •