Language Keys not displaying $_GET[$sFilterName]?

weird. I just noticed that the "Keys" are not displaying in admin. Click "Add a Key", works so does "Date/Time Format" but click on Keys and it displays "Empty". 

I recompiled the language but it didn't do anything. Obviously the keys are there, the query is not pulling them.

It's not getting past $_GET[$sFilterName] because it can't find it. The url is only lang.php. What is the $_GET trying to get? 


function _getKeysList($mixedResult, $bActive = false)

{

    $sFilterName = 'filter';

    $sFilter = '';

    $aItems = array();

echo 'something' here displays

    if(isset($_GET[$sFilterName])) {

echo 'something else' here does not display

Quote · 2 Mar 2014

The Keys tab always says empty until you put something into the filter box and click apply.

There are thousands of keys. Displaying them all by default is not done. So you narrow it down with a filter then it will display the matches.

There is nothing wrong there. It is normal.

For an example, see my video. http://www.deanbassett.com/m/videos/view/Edit-Language-Key at about 1:10 into the video you will see the normal Keys page.

https://www.deanbassett.com
Quote · 2 Mar 2014

My bad.  I left out the part that the filter form is missing.  :)

The search box and "Apply" checkbox has done disappeared on me for some reason.

It can't get down far enough in that function to post the form (see below).  Any idea where that $get statement at the top of the function is pulling from?  I've not messed with anything in the admin panel especially code. The only thing I changed earlier today was to disable some of the FLASH modules like video chat.  I've no idea why it stopped working. Has to be a missing or bad variable.

    return $GLOBALS['oAdmTemplate']->parseHtmlByName('langs_keys.html', array(

I even double checked to see if that html page with the form was still there and yep.

Quote · 2 Mar 2014

That get pulls the passed value from the filter form. The form you say is not there. And it does not get called until you enter something into the form field and check the box. There is nothing wrong with that code. If you have not touched that code for that section then it's not the code. We all run the same code. Dolphin calls functions from all over the place. It could very well be a file you changed completely outside of that area.

I would start by undoing recent changes.

https://www.deanbassett.com
Quote · 2 Mar 2014

Clone your site for working on code changes and such so that if you make a change and it breaks something, you don't break your production site.  I also always make a backup copy of the file as well, then if an oops happens, you can just delete the oops file and rename back.

Geeks, making the world a better place
Quote · 2 Mar 2014

I appreciate the feedback and suggestions.  I do have backups just in case but I'd like to know why as much as fixing it.  I'm trying to teach myself php coding as a <gasp> hobby and I'm getting better but still a long way from being an expert.  

 

I'll look to see where that langkey.html form gets loaded somewhere else first so you can type something in the form so it will post - so I can see the form.  I just did that quick echo above and below the IF statement just to see if it was kicking me out of the function before it got down to the controls module.  Now that I know the get is from a self post, I should be able to track down why the initial form is not loading.  

There almost has to be something I've done outside the administration folder that caused it since I've not monkeyed around with anything in there yet for a very long time.  And it was working yesterday.  Thanks again guys (and girls).

Quote · 2 Mar 2014

I found it.  I was messing around with the top admin controls for different modules like "pending,add, manage, etc" and I took out the top_settings_block which hid the admin commands in the main site but it also hid the lang.html form in the main admin panel too. lol.

Quote · 3 Mar 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.