![]() ![]() |
Jan 30 2019, 03:20 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 7 Joined: 3-October 15 Member No.: 2,262 |
When I run the cron (... is my own path to the web folder) /bin/php -q .../administrator/components/com_post_by_email/cron.post_by_email.php >> /dev/null , I get the following warnings: PHP Notice: Constant JROUTER_MODE_RAW already defined in .../libraries/import.php on line 60 PHP Notice: Constant JROUTER_MODE_SEF already defined in .../libraries/import.php on line 67 It would be nice to silence those warnings by fixing the php code. :-) |
|
|
|
Jan 31 2019, 08:42 AM
Post
#2
|
|
![]() Web Design Seo ![]() ![]() ![]() ![]() Group: Root Admin Posts: 4,332 Joined: 29-April 09 From: Sofia Member No.: 1 |
Brian Craigie, there is no JROUTER_MODE_RAW and JROUTER_MODE_SEF constants in whole "Post by email" component, these constants and errors are NOT from our component. Also, there is no folder or file with name "libraries" in "Post by email" component.
Probably errors are from "libraries" folder of your version of Joomla. -------------------- Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
|
|
|
|
Mar 12 2020, 08:13 AM
Post
#3
|
|
|
Newbie ![]() Group: Members Posts: 7 Joined: 3-October 15 Member No.: 2,262 |
Brian Craigie, there is no JROUTER_MODE_RAW and JROUTER_MODE_SEF constants in whole "Post by email" component, these constants and errors are NOT from our component. Also, there is no folder or file with name "libraries" in "Post by email" component. Probably errors are from "libraries" folder of your version of Joomla. Thanks However if you look at your code administrator/components/com_post_by_email/cron.post_by_email.php you will see: CODE 49 require_once(JPATH_BASE.DS.'includes'.DS.'framework.php'); 50 51 // Get the framework. 52 require_once JPATH_LIBRARIES . '/import.php'; includes/framework.php does this: CODE require_once JPATH_LIBRARIES . '/import.legacy.php'; import.legacy.php does this: CODE const JROUTER_MODE_RAW = 0; const JROUTER_MODE_SEF = 1; And then on line 52 in your script, you require import.php which also does: CODE const JROUTER_MODE_RAW = 0; const JROUTER_MODE_SEF = 1; This is what causes the warning that these constants are already defined. My suggestion is you don't need to require both framework.php and import.php Your script produces no errors if I comment out line 52 which requires the import.php Hope this helps. |
|
|
|
Mar 12 2020, 08:35 AM
Post
#4
|
|
![]() Web Design Seo ![]() ![]() ![]() ![]() Group: Root Admin Posts: 4,332 Joined: 29-April 09 From: Sofia Member No.: 1 |
Thanks, Brian. Extension is not updated from many time, but Joomla was changed, libraries files also. I will check it today and will made changes.
-------------------- Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 1st June 2026 - 08:39 PM |