| Author |
myyp modify links |
|
Cyrus
Just can't stay away Joined: 30-Dec-2001 Posts: 136
From: New Zealand
|
Posted: 2006-03-25 18:25
Running latest mpn version PHP 4.3.10 MySQL 4.0.25-standard For some strange reason my myyp modify links are suddenly not functioning. I get a !!!Fatal Error!!! stating Registered Users Only when I use the 'Modify Link' function from the biz detail...I'm logged in as admin... Or, when I use the modify link when logged in as admin, the browser goes into a spin not arriving at any page but constantly finding. The same result when trying to modify from module biz id number...the browser keeps reloading, not finding anything, just constantly reloading. Everything else on the site seems to be functioning normally. Would be grateful for some advice. Regards. ----------------- Cyrus PromotionData.com(A division of ThePromotionGroup network)
|
|
Cyrus
Just can't stay away Joined: 30-Dec-2001 Posts: 136
From: New Zealand
|
Posted: 2006-03-25 19:00
I logged in as a user and sent a request to modify the link. I logged in as admin and accepted to update the link. It refused update stating Error Code: 0013 ERROR: Could not query the database. Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 's....etc. I then deleted the request. I logged in back as user and sent in a fresh modification request without any apostrophes. Again logged in as admin and accepted the modification. This time it went through. The only factor here was that it did not follow para tags...so the modification appeared as one big para. ----------------- Cyrus PromotionData.com(A division of ThePromotionGroup network)
|
|
avw
MPN Developer Joined: 07-Nov-2001 Posts: 1300
From: Houten
|
Posted: 2006-03-26 03:23
An answer to your first message...
You can only add businesses when logged in as a user. So, being logged in as admin but not as a user can show you the first error message. It sounds reasonable that you have to be logged in as a user to add or modify links.
|
|
avw
MPN Developer Joined: 07-Nov-2001 Posts: 1300
From: Houten
|
Posted: 2006-03-26 03:27
I can imagine that paragraph tags gets stripped by the sanitizer. Did you try to use line breaks?
|
|
Cyrus
Just can't stay away Joined: 30-Dec-2001 Posts: 136
From: New Zealand
|
Posted: 2006-03-26 06:18
1. !!! QUOTE !!! You can only add businesses when logged in as a user If submitted by a user, it requires admin approval. However, an admin can include a business, and should also be able to modify it, as the admin side module also indicates, which I cannot do as admin in my case. 2. !!! QUOTE !!! Did you try to use line breaks? Yes, as a user, I submitted a request to modify with line break tags but those didn't work either, when I approved the request as admin. ----------------- Cyrus PromotionData.com(A division of ThePromotionGroup network)
|
|
Administrator
Moderator
|
Posted: 2006-03-26 19:00
log in as admin and user
Quote
|
|
Cyrus
Just can't stay away Joined: 30-Dec-2001 Posts: 136
From: New Zealand
|
Posted: 2006-03-26 19:08
Thanks. However, wondering why this link is not working. !!! CODE !!! http://www.mysite.com/admin.php?fct=myyp&op=modBiz&bid=x Regards ----------------- Cyrus PromotionData.com(A division of ThePromotionGroup network)
|
|
avw
MPN Developer Joined: 07-Nov-2001 Posts: 1300
From: Houten
|
Posted: 2006-03-26 23:46
Well, that link does work here at myphpnuke.com. I replaced the x with a random number and it showed me the Edit business page for an unknown/non-existing company (that's caused by the random number).
So, the link should work. I am logged in as user AND admin at the same time.
Do you get a particular error message when you use this type of link at your site?
|
|
Cyrus
Just can't stay away Joined: 30-Dec-2001 Posts: 136
From: New Zealand
|
Posted: 2006-03-27 04:01
The browser keeps reloading....not finding any page....just reloading every second or so. Sometimes, after I stop the process and refresh the page, part of the page loads after a few tries....but not the entire page. Regards ----------------- Cyrus PromotionData.com(A division of ThePromotionGroup network)
|
|
avw
MPN Developer Joined: 07-Nov-2001 Posts: 1300
From: Houten
|
Posted: 2006-03-28 01:11
The fact that these things suddenly have started make me think of a change to the webserver or PHP version. Are you sure that nothing of your server setup has changed?
Does the reloading of that page occur for every business that you want to change or only one? Is the record for that business visible in the database via phpMyAdmin?
|