Author Topic: [solved; template proplem]BE view order not rendering fully - how to debug?  (Read 1957 times)

aerdna

  • Beginner
  • *
  • Posts: 29
  • A beginner
Hi,
I'm using Joomla 3.4.8, php 5.6.24 and VM 3.0.12

I've been trying to develop a custom plugin based off of the textinput custom plugin and at some point it appears I messed something up along the way so that in the back end when I view an order by clicking on the Order Number, it takes me to a page that appears to render without any css styling - just basic html, and only the quantity and item name appear. The cell values for SKU, Status of ordered products, etc. have no text.  I'm pretty sure there used to be buttons and html form elements before it got messed up.

How do developers debug something like this? I have no idea what files are involved in displaying the backend orders and don't know how to find this information other than attempting to infer it from the code.

I've tried backing out my changes, but the problem persists.  I don't think I've modified anything else but obviously I have. I just don't know how to debug this short of reverting my entire site to the original install.  I was also working on a payment plugin.  (Chrome dev tools shows no errors btw and the head section does have the css and js files included). It's like it just stopped rendering the page after the first item in the order history.

My site is not accessible to the public so I can't share that info.

Any suggestions?

Thank you,
Andrea

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10693
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: BE view order not rendering fully - how to debug?
« Reply #1 on: August 22, 2016, 10:36:41 am »
VM's folder and file structure is very logically set out

it follows MVC conventions

admin orders will be displayed from  \administrator\components\com_virtuemart\views\orders\

sounds like a syntax error
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

aerdna

  • Beginner
  • *
  • Posts: 29
  • A beginner
Re: BE view order not rendering fully - how to debug?
« Reply #2 on: August 23, 2016, 04:48:39 am »
Ok. Thank you.  I'll look through those files.

I apologize for my many newbie questions but really appreciate the help!

Andrea

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10693
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: BE view order not rendering fully - how to debug?
« Reply #3 on: August 23, 2016, 09:28:13 am »
Quote
I'm using Joomla 3.4.8, php 5.6.24 and VM 3.0.12

you should be on J3.6.2/VM3.0.16 -- the upgrade will probably fix the problem

http://dev.virtuemart.net/attachments/download/1000/com_virtuemart.3.0.16_extract_first.zip
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

aerdna

  • Beginner
  • *
  • Posts: 29
  • A beginner
Re: BE view order not rendering fully - how to debug?
« Reply #4 on: August 25, 2016, 07:18:55 am »
I think my template was buggy perhaps because I couldn't really find any reason for the odd display.  I just bought a modern template with a "quickstart" so I'm now running Joomla 3.6.0 and VM 3.0.16.  I tried to upgrade Joomla to 3.6.2 but it gave me an error message.  The quirkiness is gone now with the orders though so I'm happy at least until I really need to upgrade Joomla and have to figure out why the upgrade didn't work.

Thanks for the suggestions.   

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28464
  • Always on vacation
    • Jenkin Hill Internet
Re: BE view order not rendering fully - how to debug?
« Reply #5 on: August 25, 2016, 11:01:27 am »
I suggest you report your Joomla update issue on http://forum.joomla.org/viewforum.php?f=710

And provide the exact error message you saw.
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 VirtueMart 4.0.12 10777  J 3.10.11 PHP 7.4.30

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10693
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: BE view order not rendering fully - how to debug?
« Reply #6 on: August 25, 2016, 11:18:13 am »
Also illustrates the perils of quickstart.. IMHO -- clean Joomla - clean VM installs then apply your template
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

aerdna

  • Beginner
  • *
  • Posts: 29
  • A beginner
Re: BE view order not rendering fully - how to debug?
« Reply #7 on: August 28, 2016, 04:33:46 am »
I actually prefer to use a clean install as I don't like including some other person's "mystery" setup with who-knows-what hidden where, but when I installed the purchased template to my clean install, it was way too complex for me to even figure out how to use it.  It uses the Helix framework which I'd never seen before, plus a lot of extensions that produced the end result I wanted if I only knew which ones to install, where to find them and how to configure them.  Without the "quickstart" I would never have been able to setup my site within my lifetime. Way too much to learn and figure out without any documentation.  Seeing it working now I can at least educate myself on how to maintain it.

I ended up trading one bad thing for another but had to choose the lesser of two evils for me.  My clean install + my old template produced an unsuable website.  My quickstart version works so far :-)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10693
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: BE view order not rendering fully - how to debug?
« Reply #8 on: August 28, 2016, 11:03:00 am »
I guess in this scenario if u want to go with some complex template (never seen the need) then set up the quickstart and also set up a the live clean install with just the template in another install
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

aerdna

  • Beginner
  • *
  • Posts: 29
  • A beginner
Re: BE view order not rendering fully - how to debug?
« Reply #9 on: August 30, 2016, 04:33:06 am »
So, I've taken your advice and backed up the "quickstart" to another domain for reference, then did a clean install myself with joomla and VM at the latest versions, then installed the "complex" template and all the dependencies I could find (still working on some parts).  It took the entire weekend, but I feel much better about it and understand it a lot better. The template is actually pretty straight-forward now that I've taken a deeper dive...I'm just not versed in joomla very well (or VM!), but trying to get there.

Again, I really appreciate your input and suggestions...and patience :-)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10693
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
 :D  yahooooo!  finally someone follows my advice...   :-*
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation