[Skip to main content](#vessel-content)

#   Cant access affiliate partners

##

- **[Bugger101](/forum/user/631-bugger101 "View Bugger101's Profile")**
- [![Bugger101's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/631-bugger101 "View Bugger101's Profile") Topic Author
- [ Offline](/forum/user/631-bugger101)

Less More

- Posts: 392
- Thank you received: 0
-
-

12 years 2 months ago [\#169424](#169424) by [Bugger101](/forum/user/631-bugger101 "View Bugger101's Profile")  *[Cant access affiliate partners](/forum/39-affilation/870714-cant-access-affiliate-partners#169424 "-- HikaShop version -- : latest -- Joomla version -- : 3.2.4 -- Browser(s) name and version -- : chrome &amp; firefox -- Error-message(debug-mod must be tuned on) -- : 'xxxxxxxx&#95;hikashop&#95;sale&#95;view' is not VIEW SQL=CREATE OR REPLACE VIEW xxxxx&#95;hikashop&#95;sale&#95;view AS SELECT a.user&#95;id, SUM(b.order&#95;partner&#95;price) AS sale&#95;price FROM xxxx&#95;hikashop&#95;user AS a LEFT JOIN xxxx&#95;hikashop&#95;order AS b ON a.user&#95;id=b.order&#95;partner&#95;id AND (CASE WHEN a.user&#95;currency&#95;id=0 THEN 6 ELSE a.user&#95;currency&#95;id END)=b.order&#95;partner&#95;currency&#95;id WHERE a.user&#95;partner&#95;activated=1 AND b.order&#95;partner&#95;paid=0 AND b.order&#95;type='sale' AND b.order&#95;status IN ('confirmed','shipped') GROUP BY b.order&#95;partner&#95;id;  Hi there,  When I go to access the partners in the backend I get the error. I asked hosting and they said it wasn't a permissions problem. I have testd it in both Firefox and chrome and it doesn't work on both. Our developer who is in another country, has tested it and it works fine for her in both chrome and firefox.  Thanks :)")* was created by *[Bugger101](/forum/user/631-bugger101 "View Bugger101's Profile")*

-- HikaShop version -- : latest
-- Joomla version -- : 3.2.4
-- Browser(s) name and version -- : chrome &amp; firefox
-- Error-message(debug-mod must be tuned on) -- : 'xxxxxxxx_hikashop_sale_view' is not VIEW SQL=CREATE OR REPLACE VIEW xxxxx_hikashop_sale_view AS SELECT a.user_id, SUM(b.order_partner_price) AS sale_price FROM xxxx_hikashop_user AS a LEFT JOIN xxxx_hikashop_order AS b ON a.user_id=b.order_partner_id AND (CASE WHEN a.user_currency_id=0 THEN 6 ELSE a.user_currency_id END)=b.order_partner_currency_id WHERE a.user_partner_activated=1 AND b.order_partner_paid=0 AND b.order_type='sale' AND b.order_status IN ('confirmed','shipped') GROUP BY b.order_partner_id;

Hi there,

When I go to access the partners in the backend I get the error. I asked hosting and they said it wasn't a permissions problem. I have testd it in both Firefox and chrome and it doesn't work on both. Our developer who is in another country, has tested it and it works fine for her in both chrome and firefox.

Thanks ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vODcwNzE0LWNhbnQtYWNjZXNzLWFmZmlsaWF0ZS1wYXJ0bmVycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

12 years 2 months ago [\#169441](#169441) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cant access affiliate partners](/forum/39-affilation/870714-cant-access-affiliate-partners#169441 "-- HikaShop version -- : latest -- Joomla version -- : 3.2.4 -- Browser(s) name and version -- : chrome &amp; firefox -- Error-message(debug-mod must be tuned on) -- : 'xxxxxxxx&#95;hikashop&#95;sale&#95;view' is not VIEW SQL=CREATE OR REPLACE VIEW xxxxx&#95;hikashop&#95;sale&#95;view AS SELECT a.user&#95;id, SUM(b.order&#95;partner&#95;price) AS sale&#95;price FROM xxxx&#95;hikashop&#95;user AS a LEFT JOIN xxxx&#95;hikashop&#95;order AS b ON a.user&#95;id=b.order&#95;partner&#95;id AND (CASE WHEN a.user&#95;currency&#95;id=0 THEN 6 ELSE a.user&#95;currency&#95;id END)=b.order&#95;partner&#95;currency&#95;id WHERE a.user&#95;partner&#95;activated=1 AND b.order&#95;partner&#95;paid=0 AND b.order&#95;type='sale' AND b.order&#95;status IN ('confirmed','shipped') GROUP BY b.order&#95;partner&#95;id;  Hi there,  When I go to access the partners in the backend I get the error. I asked hosting and they said it wasn't a permissions problem. I have testd it in both Firefox and chrome and it doesn't work on both. Our developer who is in another country, has tested it and it works fine for her in both chrome and firefox.  Thanks :)")*

Hi,

This is usually a permission issue in the database which refuses the creation of the views necessary for the display of the listing.
Once the views are created in the database, the display will work, regardless of your browser or your location.
So if it works now for your developer on your website, then it should also work for you.
So I guess that either someone lifted the restriction, or added manually the views on your database.

The following user(s) said Thank You: [Bugger101](/forum/user/631-bugger101 "View Bugger101's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vODcwNzE0LWNhbnQtYWNjZXNzLWFmZmlsaWF0ZS1wYXJ0bmVycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[zebrafilm](/forum/user/6308-zebrafilm "View zebrafilm's Profile")**
- [![zebrafilm's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6308-zebrafilm "View zebrafilm's Profile")
- [ Offline](/forum/user/6308-zebrafilm)

Less More

- Posts: 187
- Thank you received: 10
-
-

12 years 2 weeks ago [\#179255](#179255) by [zebrafilm](/forum/user/6308-zebrafilm "View zebrafilm's Profile")  Replied by *[zebrafilm](/forum/user/6308-zebrafilm "View zebrafilm's Profile")* on topic *[Cant access affiliate partners](/forum/39-affilation/870714-cant-access-affiliate-partners#179255 "-- HikaShop version -- : latest -- Joomla version -- : 3.2.4 -- Browser(s) name and version -- : chrome &amp; firefox -- Error-message(debug-mod must be tuned on) -- : 'xxxxxxxx&#95;hikashop&#95;sale&#95;view' is not VIEW SQL=CREATE OR REPLACE VIEW xxxxx&#95;hikashop&#95;sale&#95;view AS SELECT a.user&#95;id, SUM(b.order&#95;partner&#95;price) AS sale&#95;price FROM xxxx&#95;hikashop&#95;user AS a LEFT JOIN xxxx&#95;hikashop&#95;order AS b ON a.user&#95;id=b.order&#95;partner&#95;id AND (CASE WHEN a.user&#95;currency&#95;id=0 THEN 6 ELSE a.user&#95;currency&#95;id END)=b.order&#95;partner&#95;currency&#95;id WHERE a.user&#95;partner&#95;activated=1 AND b.order&#95;partner&#95;paid=0 AND b.order&#95;type='sale' AND b.order&#95;status IN ('confirmed','shipped') GROUP BY b.order&#95;partner&#95;id;  Hi there,  When I go to access the partners in the backend I get the error. I asked hosting and they said it wasn't a permissions problem. I have testd it in both Firefox and chrome and it doesn't work on both. Our developer who is in another country, has tested it and it works fine for her in both chrome and firefox.  Thanks :)")*

Ah yes, my bad to copy/paste the wrong error after playing with the test DB. But strange enough I needed to delete the 'lead_view to get it all working. Wonder where that error / issue comes from.
The only difference between this and other sites is it running on MariaDB instead of MYSQLI.
Thanks for pointing me in the right direction.

Questions:
1. was it part of an older bug? Any way to avoid this?
2. can views always be deleted and automatically recreated?
3. The DB checks doesn't include view checks?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vODcwNzE0LWNhbnQtYWNjZXNzLWFmZmlsaWF0ZS1wYXJ0bmVycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 1 week ago [\#179294](#179294) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Cant access affiliate partners](/forum/39-affilation/870714-cant-access-affiliate-partners#179294 "-- HikaShop version -- : latest -- Joomla version -- : 3.2.4 -- Browser(s) name and version -- : chrome &amp; firefox -- Error-message(debug-mod must be tuned on) -- : 'xxxxxxxx&#95;hikashop&#95;sale&#95;view' is not VIEW SQL=CREATE OR REPLACE VIEW xxxxx&#95;hikashop&#95;sale&#95;view AS SELECT a.user&#95;id, SUM(b.order&#95;partner&#95;price) AS sale&#95;price FROM xxxx&#95;hikashop&#95;user AS a LEFT JOIN xxxx&#95;hikashop&#95;order AS b ON a.user&#95;id=b.order&#95;partner&#95;id AND (CASE WHEN a.user&#95;currency&#95;id=0 THEN 6 ELSE a.user&#95;currency&#95;id END)=b.order&#95;partner&#95;currency&#95;id WHERE a.user&#95;partner&#95;activated=1 AND b.order&#95;partner&#95;paid=0 AND b.order&#95;type='sale' AND b.order&#95;status IN ('confirmed','shipped') GROUP BY b.order&#95;partner&#95;id;  Hi there,  When I go to access the partners in the backend I get the error. I asked hosting and they said it wasn't a permissions problem. I have testd it in both Firefox and chrome and it doesn't work on both. Our developer who is in another country, has tested it and it works fine for her in both chrome and firefox.  Thanks :)")*

Hi,

[ dev.mysql.com/doc/refman/5.0/en/views.html](http://dev.mysql.com/doc/refman/5.0/en/views.html)
A view is a view, not a table.
You can delete the view without any problem, it will be re-created for the affiliate processing.

And the DB checks does not include view checks because the view are not HikaShop tables.
It is not related or managed to HikaShop but by the affiliate plugin. If the view does not exist it's not a problem for HikaShop and if the view does not exist, it's not a problem for the plugin which will create it for his temporally needs.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [zebrafilm](/forum/user/6308-zebrafilm "View zebrafilm's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vODcwNzE0LWNhbnQtYWNjZXNzLWFmZmlsaWF0ZS1wYXJ0bmVycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.049 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
