GautamGupta / YOURLS-Import-Export

Import and Export YOURLS
GNU General Public License v3.0
49 stars 7 forks source link

Broken Query Arg? #1

Closed ericmann closed 12 years ago

ericmann commented 12 years ago

Tried to install this so I can migrate my YOURLS installation from one server to another without messing with a SQL dump. Activation went just fine, but when I tried to navigate to the actual Import/Export page, I was met with this error message:

Fatal error: Call to undefined function add_query_arg() in /homepages/11/d235243095/htdocs/eam.me/includes/functions.php on line 1504

It appears at the very top of the page, which means there is a problem with the call to yourls_add_query_arg() on line 53.

I'm running YOURLS v 1.5, and further investigation shows that there is a bug in that core function, but it's not included in the tagged version release ...

GautamGupta commented 12 years ago

Looks like it has already been fixed in the core, so you can checkout the trunk version of YOURLS. :)

http://code.google.com/p/yourls/source/detail?spec=svn702&r=702

Sorry for the late reply.

ericmann commented 12 years ago

In trunk yes ... but anyone who installed "version 1.5" before that changeset will be affected. Easy enough fix (and patched in my own installation), but I wanted you to be aware of it should the issue come up again.

GautamGupta commented 12 years ago

I know this isn't a complete solution to the problem, but I don't want to add redundant code/a copy of the remove_query_arg() function to the plugin. A new version of YOURLS should hopefully be released soon. :)