Author Topic: vmError: $link["view"] is empty  (Read 14190 times)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27742
  • Always on vacation
    • Jenkin Hill Internet
Re: vmError: $link["view"] is empty
« Reply #15 on: December 19, 2012, 18:06:11 pm »
SEF?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.2 10325 on Joomla 3.9.18 PHP 7.3.18

fire47

  • Jr. Member
  • **
  • Posts: 90
Re: vmError: $link["view"] is empty
« Reply #16 on: December 19, 2012, 18:08:41 pm »

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27742
  • Always on vacation
    • Jenkin Hill Internet
Re: vmError: $link["view"] is empty
« Reply #17 on: December 19, 2012, 18:58:29 pm »
Do you have SEF turned on?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.2 10325 on Joomla 3.9.18 PHP 7.3.18

bytelord

  • Nikos
  • Global Moderator
  • Full Member
  • *
  • Posts: 2369
Re: vmError: $link["view"] is empty
« Reply #18 on: December 19, 2012, 19:36:58 pm »
Hello,

Sorry for asking again but could you also verify that AIO is updated also (2.0.14)?
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

fire47

  • Jr. Member
  • **
  • Posts: 90
Re: vmError: $link["view"] is empty
« Reply #19 on: December 19, 2012, 21:05:26 pm »

fire47

  • Jr. Member
  • **
  • Posts: 90
Re: vmError: $link["view"] is empty
« Reply #20 on: December 19, 2012, 21:06:14 pm »
Hello,

Sorry for asking again but could you also verify that AIO is updated also (2.0.14)?

Yes

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27742
  • Always on vacation
    • Jenkin Hill Internet
Re: vmError: $link["view"] is empty
« Reply #21 on: December 19, 2012, 22:04:42 pm »
OK can you turn off all SEF and see if the error goes away?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.2 10325 on Joomla 3.9.18 PHP 7.3.18

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10040
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: vmError: $link["view"] is empty
« Reply #22 on: December 19, 2012, 22:29:55 pm »
Go to the router.php line and enter at line 1012 vmdebug('my item with empty view'); so that the else part look like
Code: [Select]
else {
vmdebug('my item with empty $link["view"]',$item);
vmError('$link["view"] is empty');
}
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

fire47

  • Jr. Member
  • **
  • Posts: 90
Re: vmError: $link["view"] is empty
« Reply #23 on: December 20, 2012, 20:57:51 pm »
OK can you turn off all SEF and see if the error goes away?

Yes it goes away, although turning off SEF is not a permanent option.

fire47

  • Jr. Member
  • **
  • Posts: 90
Re: vmError: $link["view"] is empty
« Reply #24 on: December 20, 2012, 20:59:56 pm »
Go to the router.php line and enter at line 1012 vmdebug('my item with empty view'); so that the else part look like
Code: [Select]
else {
vmdebug('my item with empty $link["view"]',$item);
vmError('$link["view"] is empty');
}

Path to router.php?  Will I have to change this every time vm is updated?  Is this a permanent solution that will be supported in future versions?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27742
  • Always on vacation
    • Jenkin Hill Internet
Re: vmError: $link["view"] is empty
« Reply #25 on: December 20, 2012, 23:25:47 pm »
Yes it goes away, although turning off SEF is not a permanent option.

Suggests to me that is caused by a Joomla menu link that maybe is disabled or hidden.

Milbo's code change to look for that Joomla link problem is included in the core now and is in 2.0.16  - you may possibly get an error message saying exactly what the problem link is (if any now) when you use SEF.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.2 10325 on Joomla 3.9.18 PHP 7.3.18

fire47

  • Jr. Member
  • **
  • Posts: 90
Re: vmError: $link["view"] is empty
« Reply #26 on: December 21, 2012, 15:22:43 pm »

Suggests to me that is caused by a Joomla menu link that maybe is disabled or hidden.


Mystery has been solved, thanks.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10040
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: vmError: $link["view"] is empty
« Reply #27 on: December 21, 2012, 17:08:10 pm »
So the vmdebug message helped you to find the broken menu item? We worked for your problem at least an hour all together. A bit more enlightning explanation would be nice.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

bytelord

  • Nikos
  • Global Moderator
  • Full Member
  • *
  • Posts: 2369
Re: vmError: $link["view"] is empty
« Reply #28 on: December 21, 2012, 17:10:50 pm »
So the vmdebug message helped you to find the broken menu item? We worked for your problem at least an hour all together. A bit more enlightning explanation would be nice.

Thinking the same, broken menu item and please fire47 will be very helpfull give some more feedback to understand where this error was related too.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10040
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: vmError: $link["view"] is empty
« Reply #29 on: December 21, 2012, 17:15:03 pm »
I think, the debug message showed him that it was exactly what we said from begin on. So he may feel guilty, which is quite normal. What he not understands is that also adding a vmdebug will help 100s of other users migrating vm1 to vm2 next year. As far as I know the majority did not update yet.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/