- Posts: 40
- Thank you received: 0
update failed.
- eciudad
- Topic Author
- Offline
- Senior Member
Less
More
2 years 10 months ago #14559
by eciudad
update failed. was created by eciudad
hi I got this while updating
Error
An error has occurred.
0 Undefined constant "JPATH_"
Return to Control Panel
versions
2.22.1.1,1.22.1.1,7.22.1.1
Error
An error has occurred.
0 Undefined constant "JPATH_"
Return to Control Panel
versions
2.22.1.1,1.22.1.1,7.22.1.1
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
2 years 10 months ago - 2 years 10 months ago #14560
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic update failed.
Hi.
I got this error too
I think it is due to last joomla updates, because I didn't change anything for example for my others extensions. Just add version.
And in this time I moved to the other VPS, and thought that is due to some server installation.
I'll write how to fix it in my docs.
Now you can do:
Go to site folder
/libraries/src/Installer/Adapter
Open file
ModuleAdapter.php
Go to line 214
and change it to
As for comparision you can check the other file (for plugin)
PluginAdapter.php
Line 287
I've got details when I enabled debug and got trace. Because component and plugin upgraded successfully, and only module show errors.
I hope it will fix it.
I don't know why they use different methods (code), and added in module the other code for call doLoadLanguage, ie didn't use not simple constant.
I got this error too
I think it is due to last joomla updates, because I didn't change anything for example for my others extensions. Just add version.
And in this time I moved to the other VPS, and thought that is due to some server installation.
I'll write how to fix it in my docs.
Now you can do:
Go to site folder
/libraries/src/Installer/Adapter
Open file
ModuleAdapter.php
Go to line 214
and change it to
Code:
$this->doLoadLanguage($extension, $source, JPATH_ADMINISTRATOR);
As for comparision you can check the other file (for plugin)
PluginAdapter.php
Line 287
I've got details when I enabled debug and got trace. Because component and plugin upgraded successfully, and only module show errors.
I hope it will fix it.
I don't know why they use different methods (code), and added in module the other code for call doLoadLanguage, ie didn't use not simple constant.
Don't forget support my developments: post review in JED , donate , help with translation
Last edit: 2 years 10 months ago by Dima.
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
2 years 10 months ago #14561
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic update failed.
PS:
As for OSM - in this extension I changed some code for flexible managing Elevation diagram.
But for other - Google and Yandex and Baidu I didn't do anything.
Only versioning. It is for prepare to moving to Joomla 4 support.
And I've got it on my demo site (I didn't change anything at all, only adding Joomla last releases), and my test site. After that I start discovering problem.
As for OSM - in this extension I changed some code for flexible managing Elevation diagram.
But for other - Google and Yandex and Baidu I didn't do anything.
Only versioning. It is for prepare to moving to Joomla 4 support.
And I've got it on my demo site (I didn't change anything at all, only adding Joomla last releases), and my test site. After that I start discovering problem.
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
2 years 10 months ago #14562
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic update failed.
Now I checked.
They want addition attribute in extension manifest file.
I added it, and in future release it will be.
But my code for fixing will correctly do.
They want addition attribute in extension manifest file.
I added it, and in future release it will be.
But my code for fixing will correctly do.
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- eciudad
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 40
- Thank you received: 0
2 years 10 months ago #14563
by eciudad
Replied by eciudad on topic update failed.
Will make changes and advise hopefully will not brake anything else. Thank you
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
2 years 10 months ago - 2 years 10 months ago #14564
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic update failed.
You can comment it and create new one.
After update - just comment mine and uncomment current
Ie -
double slash // (comment line),
or
/* here text */
Ie your file like that (lines 213-214)
Before
After
And after success just change comments (ie you rollback to current joomla installation)
After update - just comment mine and uncomment current
Ie -
double slash // (comment line),
or
/* here text */
Ie your file like that (lines 213-214)
Before
$client = (string) $this->getManifest()->attributes()->client;
$this->doLoadLanguage($extension, $source, constant('JPATH_' . strtoupper($client)));
After
$client = (string) $this->getManifest()->attributes()->client;
// $this->doLoadLanguage($extension, $source, constant('JPATH_' . strtoupper($client)));
$this->doLoadLanguage($extension, $source, JPATH_ADMINISTRATOR);
And after success just change comments (ie you rollback to current joomla installation)
$client = (string) $this->getManifest()->attributes()->client;
$this->doLoadLanguage($extension, $source, constant('JPATH_' . strtoupper($client)));
// $this->doLoadLanguage($extension, $source, JPATH_ADMINISTRATOR);
Don't forget support my developments: post review in JED , donate , help with translation
Last edit: 2 years 10 months ago by Dima.
Please Log in or Create an account to join the conversation.
Time to create page: 0.210 seconds