MySQL error on localhost, but not remotely!

I get an error of:

Warning : mysql_free_result() expects parameter 1 resource, null given in / Users... line 848

But I get only this on my dev machine. It does not show on the remote site. I took the remote DB and put it inplace of my a local just in case I had inadvertantly deleted something, but still no joy.

I closed the recordset using:

mysql_free_result ($rs_reg_domain);

But had to use the following to hide the error:

If (($rs_reg_domain) is_resource) mysql_free_result ($rs_reg_domain);

and finally, the Recordset:

@mysql_select_db ($database_conn_mrs, $conn_mrs);

$query_rs_domain = "SELECT * FROM tbl_settings WHERE fld_settingsNAME = 'domain" ";

$rs_domain = mysql_query ($query_rs_domain, $conn_mrs) or die (mysql_error ());

$row_rs_domain = mysql_fetch_assoc ($rs_domain);

$totalRows_rs_domain = mysql_num_rows ($rs_domain);

'domain' has a value.

What's wrong?

Thank you

The reason why you get an error at the local level, but not on the remote server is certainly because the remote server has the configuration of PHP display_errors setting disabled. The error still occurs, but it is not displayed. Most Web hosts disable the display of errors for security reasons.

Looking at the code you gave here, it seems that the error is caused by using the wrong variable name for the recordset object. The recordset is $rs_domain, but you're passing $rs_reg_domain to mysql_free_result().

Tags: Dreamweaver

Similar Questions

  • VPN works locally but not remotely

    I our ASA 5510 put in place to create a vpn for our users.  When I test locally it works fine, but when I try to use it remotely, it will not work.  In addition, port 500 is open locally but not remotely.  What Miss me?  I was told that there is no firewall in place that would affect me.

    Dan

    You say port 500 (UDP) is not open remotely.

    How do you as a customer to connect if UDP 500 is not open on the client side?

    Federico.

  • Table error with FUSION, but not with INSERT changing

    I get an error of trigger of table mutation in a MERGE statement, but not for INCLUSION. I know a trigger should not be used like that, but it has been in the system for centuries. I just want to understand why this is happening for the MERGER, but not the INSERT. Maybe that's "just how Oracle works.

    Here is a very simple example on the 11.2.0.2.0 database.

    Thank you

    INO

    create table mutate (identification number, name varchar2 (10));

    create or replace trigger mutate_biur

    before inserting transfer him

    for each line

    Start

    for r in (select 1

    to mutate

    WHERE name =: new.name

    )

    loop

    raise_application_error (-20000, 'name already exists');

    end loop;

    end;

    insert into mutate values (1, 'Name1');

    Fusion in mute m

    using (select 2 id, 'Name2' double name) t

    on (m.id = t.id)

    when matched, then update set $m.name = t.nom

    When not matched then insert (m.id, $m.name) (t.id, t.name) values;

    Output for this is:

    Table created.


    Trigger created.


    1 line of creation.  -No error here


    Fusion in mute m

    using (select 2 id, 'Name2' double name) t

    on (m.id = t.id)

    when matched, then update set $m.name = t.nom

    When not matched then insert (m.id, $m.name) (t.id, t.name) values

    Error on line 20

    ORA-04091: table PROD. MUTATE is changing, the function of triggering/can not see

    ORA-06512: at the 'PROD '. MUTATE_BIUR', line 2

    ORA-04088: error during execution of trigger ' PROD. MUTATE_BIUR'

    INSERT INTO table VALUES (.) is a special case - it knows it will insert only one line, and the Before Insert trigger knows that it takes only for the first line, if you see a stable table.

    Insert to mutate select id 2, 'Name2' name of the double

    give the ORA-04091: table MUTATE is changing, function of triggering/can not see

    So the difference is not simply INSERT vs FUSION, INSERT... The value of VALUES versus INSERT or MERGE a query result.

  • Unknown error recorder - solved, but not a great solution

    A customer brought me a new laptop has an old mistake: when capturing from a DV camera, body quickly get an "unknown Recorder error" and does not capture. The problem does not manifest during capture in Windows Movie Maker and does happen with 3 cameras from different manufacturers. I already downloaded and installed the 5.0.2 update and am logged on as administrator.

    My solution was to go into the Task Manager and set the process affinity of agency use only the CPU 0. Then capture works perfectly. I know it was a problem with older versions of the elements and the body and equipped with AMD processors. But this laptop (desktop replacement) has a video of 1.5 GB Intel i7 with 8 GB of memory, processor and about 500 GB of free space on the disk at 7200 RPM / min.

    Why this bug has not been overwritten? Yes I can enter on the bug report page, but it has long been known. Has anyone found a better solution than that? (I told the customer it would be better to go without tape, but still...)

    Go into the hardware Manager Win7 and change than LEGACY Firewire driver in the name

  • JavaScript, on the local server, but not remote work

    Hello

    I use JavaScript to a gallery widget on our site.

    It works perfectly when you test locally, but when I upload the images to our server is all there, but the animation is more work, when you click on a thumbnail, the image of the slide is just opened in a new window as a static picture - images should expand and then you should be able to navigate through each of them.

    I checked all the links to the JS folder and everything seems to be okay.

    Can anyone offer advice or suggestions on what to get?

    Thank you!

    Your three javascript files are not in the location you have in the code-

  • 'Labels' print brand error Postscript - CS5 but not CS4 (or CS3)

    Hi all

    My apologies if this has been discussed or resolved, but I couldn't find anything on the subject...

    I had tons of Postscript, printing of CS5 errors since I installed it a couple of weeks. Well, I just reduced the problem to the "Labels" in the print section option marked in the output area of the print dialog box.

    I use labels all the time, especially for the final impressions-, so I don't know the name of the file, so I really need this option, but can't find a way to solve the problem. I guess a police wobbly is the culprit, but see no way to change the font of "Labels".

    FYI, it NEVER caused a problem in CS4, CS3 or CS2.

    Any suggestions?

    Thank you!

    Oops. I found the problem. This is a bug in the PostScript when printing labels.

    Long file names trigger. Looks like a dozen characters are fine. More than that could trigger a limitcheck. The only solution I see would be to make the shorter file name. Sorry about that.

    The strange thing is that on many interpreters of PS, it simply prevents the print file name, but the rest of the page prints fine.

    I working on a fix, but cannot say when the fix will happen to you.

  • Cisco vpn 5.0.07.0440 - k9 connected but not the network remote access to Windows 8.1 pro

    I use 5.0.07.0440 - k9 vpn Cisco and Cisco vpn 5.0.07.0290 - k9 both version on our 8.1 Windows Mobile pro.
    VPN connected successfully, but not remote access network and receive no ping.

    But when I try with wifi and vpn, then good job.

    Please help me as soon as possible.

    Thank you
    Sanjib

    It is very problematic on Windows 8 and EOL now.

    Kind regards

    Nehmaan

  • Firefox does not open, but is rather the error message "Unable to read the configuration file." He has worked in the past, but not now.

    Firefox does not open, but is rather the error message "Unable to read the configuration file." He has worked in the past, but not now.

    I REINSTALL 10 TIMES SO DON'T TELL ME THAT!
    I'm piss because I need firefox work again, so I can finish my reseaching in 5 days.


  • Satellite A50 will record on Dvd, but not on a CD - power calibration error

    My Satellite A50 will record on Dvd, but not on a cd. It happens with power calibration error after about 5% of the record.
    The drive used to save at all!

    --> Power calibration error is a mistake known to me.
    I've read on various sites several suggestions and comments and the power calibration error appear because the lens of the drive can not calibrate correctly.
    It is a hardware malfunction and unfortunately nothing :(

    You will need to replace the drive

  • The TIFF to write IMAQ 2 - 1074396154 error occurs when saving a camera, but not two

    Hi all

    I have a program I customized based on example programs (e.g. triggered Grab loops producer-consumer) LabVIEW.  The VI allows the user to choose the number of cameras they would like to use for acquiring (between 1 and 4), as well as the trigger source - either a constant material counter or a manual release that is connected to a digital input.

    Acquisition works very well with any number of cameras (using a loop of producer), however I'm running on an issue to save images in the loop of the consumer.  Frames are removed during the registration process, when I have the 1, 3 or 4 cameras option selected.  I get error 1074396154: Image is not big enough for the operation.  This question is somewhat improved by hard-coding the size of the image of 1280 x 1024 (as suggested here), but a loss of image is still intermittent.  I never ran into this issue using the 2-camera option.

    I have attached my code here.  Anyone has any advice on why this error occurs only in some cases?  Is there a setting that I need to configure for IMAQdx?

    Many thanks in advance,

    Tracy

    Unfortunately the code is too big and can not look in every corner.

    S ' Please try using SubVIs to make the simplest code: http://www.ni.com/white-paper/7593/en/

    -Coming from another question, IMAQ Create(User Buffer) creates the reference to the image.

    -You create an image to copy image to this place, you get from IMAQdx Grab.

    ->, You are able to see the image in indicator Camera1?

    -> Use your Get size vi after grab and internal image structure deal just before enqueueing and see if it is to have the image size valid.

    -Now let's say that if you get another picture before saving this image, then the image will be replaced.

    -So if your writing process is too slow, you must create the buffer sufficient user.

    -> In your loop of consumption within case accession after unbundling image thread: https://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/using_the_probe_tool/

  • EXCEL ActiveX + error '-2146827284' (but not the string length limit)

    Hi all

    First of all thanks for your help!

    I have a strange error with excel activeX: "-2146827284!"

    Why strange? Because my export feature works perfectly on a computer but not on another... (both are windows 7 + Excel 2007)

    How my application works:

    I have to read an excel spreadsheet which preserves made with different types of instruments of measures.

    For each type of instrument, I have to create a specific worksheet with its measures.

    For example:

    1 spreadsheet excel with the many measures of 4 different types of instruments

    SHOULD GIVE

    4 excel spreadsheets containing the measures of each instrument (1 worksheet for a type of instrument).

    Hope I am clear...

    Why I do with LV? Because it's fun!

    Now that some snapshoot.

    1 - where the bug appears :

    2 - the message I get (translated from french to English):

    Additional information:

    -The size of the string I have write in excel cells is 6 characters max. More I put a condition to return an error if the string length is > 900 characters.

    Thanks a lot for your help!

    SO simple...

    It was just the name of the folder...

    I coded the name of the folder as a constant aim dev. And I do not mind that the name of the folder is not the same on both computers!

    "a missing letter = a week closed.

    Arrrgh

    all sorry to bother you

  • SIT error 14104, dll runs on the host, but not on the target

    Hello

    I have problems of deployment dll (compiled in 2007 with Microsoft Visual C++ .NET 2003) Simulink in LabVIEW (2009 SP1). My target system is a desktop PC with LabVIEW Real-time 9.0 installed.

    I created a simple Simulink model which mulitplies an entry with a Gain and returns the result. I compiled using the nidll.tlc as a target file system.

    Then, I created a LabVIEW RT application that uses this DLL. I created exactly the same application as the host VI and VI target. On the host VI everything works fine. On the target VI, I get error SIT 14104.

    What I did to solve this problem? I followed the steps on http://digital.ni.com/public.nsf/allkb/C7FF960E0A6C219A8625729600104615 . I have manually deployed the dll on the target computer. I used the suggested compiler. There is a lot of memory on the computer (RAM and HDD) target. And I'm not using a CRio system.

    Does anyone have an idea how to fix this error? I will attach the sample project labview and the MDL and DLL to this post. Don't forget to adapt the DLL-path if you test the program.

    Kind regards

    Thomas

    Well I found a solution.

    I had to deploy the DLL manually on the target, but not in ftp://IP_Address/ni-rt/system/ as the link above is said but rather in ftp://IP_Address/ .

    Problem solved.

    Kind regards

    Thomas

  • Outlook Express 6 problem - the Outbox can receive mail but not send Ox800CCC79 error message

    Can receive messages but not send error message Ox800CCC79

    This account has already worked? The error message indicates that you are either using Promail and attempts to send via another server, or by using another server and trying to send via Promail. Whatever it is, the error 550 is a refusal to relay messages.
     
     
     
  • Outlook Express 6 - can receive messages but not send - error number: 0x800CCC0E

    Original title: Outlook Express 6 - can receive messages but not send

    I recently installed SP3 on my Windows XP machine and installed Internet Explorer 8. After that, Outlook stopped mail (still receives, if) and gave me this error message:

    The connection to the server has failed. Account: 'mail.qmcompany.com', server: 'mail.qmcompany.com', Protocol: SMTP, Port: 587, secure (SSL): no, Socket error: 10060, error number: 0x800CCC0E

    I tried everything but reinstall Outlook Express. Is there a compatibility issue with IE 8? Any help would be appreciated.

    John

    Hi John,.

    Follow the steps described in the article below

    Troubleshooting error messages that you receive when you try to send and receive e-mail in Outlook and Outlook Express (OE)

    http://support.Microsoft.com/kb/813514

    (Article applies to Outlook Express 5.5, steps applies to OE 6)

  • We get a blue screen with no error message when the user arrives in the morning... but not every day.

    Have a user who was the bluescreen with no error message when she arrives in the morning. This doesn't always happen.  But when it does, it must do a hard boot of his computer. It runs XP SP3, and it is on a domain. Another user reports what is happening also, but not as often.

    Yet once, it is not consistent where it happens every working day. It's maybe 1 or 2 days a week, if that. Hibernation is disabled and power options are set to never turn off.
    If this is not enough information, I will be happy to provide more if necessary. Any contributions to this issue would be appreciated.
    Thank you

    This may apply . But this message does not resemble a BSOD / crash

Maybe you are looking for